Post

Replies

Boosts

Views

Activity

Reply to Persistent 'buildExpression unavailable' error in ContentView with switch/AppState
Problem: I consistently get the build error 'buildExpression' is unavailable: this expression does not conform to 'View' pointing to the lines inside the .setup and .game cases of the switch statement in ContentView. No problem with WelcomeView ? Do you still get the problem if you replace .transition(.asymmetric(insertion: .move(edge: .trailing), removal: .move(edge: .leading))) by .transition(.opacity) in SetupView ? Could you also show how you declare the environment var in struct TheApp: App { }
Topic: UI Frameworks SubTopic: SwiftUI
Apr ’25
Reply to Versioning Question
You have defined, in the Targets, in Identity section, a version number and a build number (which should appear during archiving). Is it 5.0 ?  If so, What number will be returned by "infoDictionary?["CFBundleShortVersionString"]"? it should return 5.0. But, why having 2 different version numbers ? Is it a mistake or on purpose ?
Mar ’25
Reply to Our app gets rejected the whole time
As we have no details, that can only be a guess. The reviewer does not if there are any legal classes set by Teltonika to interface with their products and probably "control" them. So they are cautious on this. What you could do: write to Teltonika and explain what your app is doing ask them if there are any limits (technical, legal or just a notice to write in your app) tor your app. ask them to provide a written letter confirming that your app is compliant with their rules. Attach this letter to your submission file. Hope that helps.
Mar ’25
Reply to App Rejected for Guideline 4.3(a) - Need Help Differentiating My App
Just relooking the UI is not enough. That often what spam are. My advice would be to add some specific features to X2. It could be additional capabilities, an Apple Watch companion app (even very simple), …  Then, state clearly in the comments to reviewer what are the differences between X1 and X2. Provide this information both for X1 and X2 submission. Add this message on any future update of your app.
Mar ’25
Reply to Why does Array's contains(_:) method cause an error when comparing an optional value with a non-optional value in Swift?
My guess for the first is that the compiler in the first performs type inference and analyses ["hello", "world"] as array of optional. let result = ["hello", "world"].contains(Optional("hello")) // ✅ Works fine But in the second, let stringArray = ["hello", "world"] let result = stringArray.contains(Optional("hello")) // ❌ Compile-time error you explicitly declare stringArray to be [String]. Then in second line, compiler balks at it.
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’25