skip to Main Content

Xcode – SwiftUI List selection always nil

In my macOS app project, I have a SwiftUI List view of NavigationLinks build with a foreach loop from an array of items: struct MenuView: View { @EnvironmentObject var settings: UserSettings var body: some View { List(selection: $settings.selectedWeek) { ForEach(settings.weeks)…

VIEW QUESTION

Xcode – Installing Cocoapods via Ruby causes Error

I try to install Cocoapods like so sudo gem install cocoapods This is the output I get: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2/ext/ffi_c /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby…

VIEW QUESTION
Back To Top
Search