Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 beta 7 Previews building issue
Seeing similar behavior on both Xcode 15.0.1 RC and Xcode 15.1 Beta. In our case, it's iOS SwiftUI Previews not working at all in SPM package (as opposed to for example an iOS app). Same code works fine on Xcode 14.x versions. Edit: Submitted case **** for this alongside diagnostics. Hope it helps, thanks for looking into it @Developer Tools Engineer!
Oct ’23
Reply to TipKit Image asset tint color
@melsam What would be the SwiftUI equivalent for a popover tip? Given the following tip: struct PopeoverTip: Tip { var title: Text { Text("Select language") .foregroundStyle(.white) .font(.title) .fontDesign(.serif) .bold() } var message: Text? { Text("Select the language you want to learn!") .foregroundStyle(.white) .fontDesign(.monospaced) } var image: Image? { Image(systemName: "book.circle") } } attempting to show the tip as a popover e.g. someView .popoverTip(InlineTip(), arrowEdge: .top) works great for text and message, but attempting to change the Image color fails. Specifically, code like the following fails to compile: struct PopeoverTip: Tip { //// ...... //// var image: Image? { Image(systemName: "book.circle") .foregroundStyle(Color.pink) } } with Cannot convert return expression of type 'some View' to return type 'Image?' Thanks!
Oct ’23