Post

Replies

Boosts

Views

Activity

Reply to Unable to use altitude for our use case (NYC MTA)
That's an intrinsic limite of GPS localisation (not iPhone): vertical precision is less than horizontal. You have probably noticed in your car. Sometimes, at the same point on a road, it says 295m, another day 305. 30 ft difference. See details here and may be some hints to a workaround: https://stackoverflow.com/questions/8282169/cllocation-elevation-accuracy Ot to get info on vertical accuracy: https://developer.apple.com/documentation/corelocation/cllocation/verticalaccuracy
Apr ’25
Reply to How to capture the currently pressed key when a TextField is in focus?
Did you try to use .onChange ? If you want to detect a pressed key (but not a typed character in the TextField, that will not do it. or onKeyPress ? More details here: https://www.avanderlee.com/swiftui/key-press-events-detection/#:~:text=Key%20press%20events%20detection%20in%20SwiftUI%20allows%20you%20to%20listen,able%20to%20get%20any%20callbacks. Something like: struct ContentView: View { @State private var vText: String = "" var body: some View { HStack { TextField("Enter text", text: Binding( get: { vText }, set: { newValue in // print("Text will change to: \(newValue)") vText = newValue } )) .onChange(of: vText) { oldText, newText in let typed = newText.replacingOccurrences(of: oldText, with: "") if newText.count < oldText.count { print("backspace") } else { print("typed char is: ", typed) } } } .onKeyPress(characters: .alphanumerics, /*phases: .up, */action: { keyPress in print("Released key \(keyPress.characters)") return .ignored // handled would intercept the typing }) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25
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 Help!
Go here for (gratis) material to get started: https://developer.apple.com/pathways/?cid=ht-pathways
Replies
Boosts
Views
Activity
Apr ’25
Reply to Problems With Car Connectivity
You once had problem with your Suzuki, now with your Skoda… It would probably be time to stop installing betas on your main phone… In any case, the forum is not the place to expose usage issues. Go to the support forum or file a bug report instead.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Myanmar Language font changed after iOS 18.4
What happens if you set the frame height ? Text("\(count.toMyanmarDigits())") .frame(height: 50) // or even 60 .font(.system(size: 40, weight: .bold, design: .rounded)) .monospaced() .foregroundStyle(.accent)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Is a spam an appreciated participation in the forums ?
Very good news Quinn. And thanks for taking the time to reply.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Unable to use altitude for our use case (NYC MTA)
That's an intrinsic limite of GPS localisation (not iPhone): vertical precision is less than horizontal. You have probably noticed in your car. Sometimes, at the same point on a road, it says 295m, another day 305. 30 ft difference. See details here and may be some hints to a workaround: https://stackoverflow.com/questions/8282169/cllocation-elevation-accuracy Ot to get info on vertical accuracy: https://developer.apple.com/documentation/corelocation/cllocation/verticalaccuracy
Replies
Boosts
Views
Activity
Apr ’25
Reply to How to capture the currently pressed key when a TextField is in focus?
Did you try to use .onChange ? If you want to detect a pressed key (but not a typed character in the TextField, that will not do it. or onKeyPress ? More details here: https://www.avanderlee.com/swiftui/key-press-events-detection/#:~:text=Key%20press%20events%20detection%20in%20SwiftUI%20allows%20you%20to%20listen,able%20to%20get%20any%20callbacks. Something like: struct ContentView: View { @State private var vText: String = "" var body: some View { HStack { TextField("Enter text", text: Binding( get: { vText }, set: { newValue in // print("Text will change to: \(newValue)") vText = newValue } )) .onChange(of: vText) { oldText, newText in let typed = newText.replacingOccurrences(of: oldText, with: "") if newText.count < oldText.count { print("backspace") } else { print("typed char is: ", typed) } } } .onKeyPress(characters: .alphanumerics, /*phases: .up, */action: { keyPress in print("Released key \(keyPress.characters)") return .ignored // handled would intercept the typing }) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Call Center BTN melalui WhatsApp (+62) 877777 20286
I commented 3 times today, wondering how such an appreciative reply (automated probably) could be done on a spam. Problème is that it removes credibility to other (serious) Apple's engineers replies. Big sigh.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Cs Ajaib Sekuritas adalah 082172226661
3 spam, and the same appreciation message. Bizarre…
Replies
Boosts
Views
Activity
Apr ’25
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
Replies
Boosts
Views
Activity
Apr ’25
Reply to Whatsapp ajaib adalah 082172226661
Yet another spam from the same account.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Nomor Whatsapp Resmi Pintu
@App Store Connect Engineer The OP is clearly a spam. Do we really appreciate to have the forum polluted by such messages ?
Replies
Boosts
Views
Activity
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 ?
Replies
Boosts
Views
Activity
Mar ’25
Reply to How are we supposed to get Ipad screenshots for our store, without having an Ipad? haha
I have an iPhone I was able to run the app there and take screenshots, Why would you take screenshots on the iPhone device ? That's not the way to do it. Just run the app from Xcode in a simulator (iPhone 6.9", iPhone 6.5" and iPad 13"), command-S to capture the screenshot you need, and you're done.
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
Mar ’25