Post

Replies

Boosts

Views

Activity

Reply to Help with ViewBuilders and SwiftUI (Xcode 12, Swift 5.3)
An update from the quoted thread above: Example: struct Test: View { 		let value: Int? 		var body: some View { 				if case let value? = value { 						Text("\(value)") 				} else { 						Text("Test") 				} 		} } I tried to drop your example in it and it does not compile in the existing project. It does compile in a brand new iOS only project, but it does not compile in a brand new macOS project (shared sample iOS and macOS projects): https://www.icloud.com/iclouddrive/01bKAFXVd82HpGZ-3R7RExKeA#ViewBuilder_iOS_macOS Not sure why it would not work for macOS, there could be the embarrassing thing I was missing and I should have explained it is an iOS + macOS app. So it works as a pure iOS project, but not as a pure macOS project. Will be creating a Feedback report and post the ID here.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’20
Reply to [Regression][Xcode 13.0b3]: a normal target in a linked SwiftPM library is treated as an app extension
Apparently this is by design: https://forums.swift.org/t/set-application-extension-api-only-on-a-spm-package/39333/11 This breaks also other libraries like Firebase App Diatribution used in an app without any app extension target. It would be nice as the app developer to be able to tell SwiftPM there is no App Extension target :/. Will try to raise this issue in all the projects I can see are affected :(… might take a while. Will add links here if it is allowed.
Jul ’21