Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 Preview not working with generic nested view
Giuma is correct -- if syntactically correct code compiles and runs on the device or Simulator, then the failure of Preview is a bug, period. I can reproduce the problem in ten lines of code (not counting closing braces): struct Outer { static let hello = "Hello" // Move MyText here and Preview compiles and runs. } extension Outer { // With MyText here app compiles and runs correctly but // Preview fails with "Compiling failed: cannot find 'hello' in scope" struct MyText: View { var body: some View { Text(hello) // This does work with Preview: Text(Outer.hello) } } } struct ContentView: View { var body: some View { Outer.MyText() } } #Preview { ContentView() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to Facebook SDK links unwanted AdSupport, app rejected
Since I posted, some people have experimented with commenting or ifdef-ing out parts of the Facebook SDK. The problem is how far to pursue the transitive closure of your edits. Here is a link to a minimal set of diffs that worked for me. That is, the executable had no AdSupport or ASIdentifierManager references. https://github.com/snorrsi/facebook-ios-sdk/commit/9d69d9ab0e510359311085def696c750c345037a
Dec ’21
Reply to Simulator crashing with iOS < 14. Started happening since Big Sur
Same symptoms as for SmartPTT and Wizfinger: playing audio freezes the app, same Console errors, happens on iOS 14 on Simulator. I don't have test devices with older iOS, but some logging code I added to the app is reporting similar problems in live versions in the field. This complaint shows up (with variants) all over the place. I am able to reproduce it in a from-scratch Xcode project, so I will be posting my code on Stackoverflow and asking DTS. I hope to have something more helpful to add here besides "Me too."
Feb ’21