Post

Replies

Boosts

Views

Activity

Reply to ios 18.5
I fear no one here can tell. So, read carefully the release notes to check if the bug you have in mind is corrected. Did you file a bug report about it ? It would help.
Topic: Community SubTopic: Apple Developers Tags:
May ’25
Reply to Behavior of Drawings in Portrait/Landscape Mode
I tested your code. When rotating, the canvas size changes, but the drawing remains the same. I cannot find immediately in your code what should make the existing drawing scale to the new format. Where is it ? Is it here ? override func draw(_ rect: CGRect) { super.draw(rect) guard let context: CGContext = UIGraphicsGetCurrentContext() else { return } for stroke in Database.strokes { context.setLineCap(.round) context.setLineJoin(.round) context.setLineWidth(2.0) context.setAlpha(1.0) context.setBlendMode(.normal) context.setStrokeColor(UIColor.black.cgColor) context.addPath(stroke.path) context.strokePath() } } But Database.strokes is not scaled on device rotation. Why should the drawing change ? Try to scale Database.strokes when you rotate device, then drawing will adapt.
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’25
Reply to Random crash on app language change from app
Why do you create a new root VC ? You should not. You simply have to: use NSLocalizedString everywhere go to app setting to change the language there For this, I use openSettings: @objc func openSettings() { guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { return } if UIApplication.shared.canOpenURL(settingsUrl) { UIApplication.shared.open(settingsUrl, completionHandler: nil) } } It is called from an alert, could be from any button: Here is the alert action okAction = UIAlertAction(title: "any title you want", style: .default, handler: { (action) -> Void in self.openSettings()} )
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’25
Reply to Unable to dismiss app's keyboard even after clicking 'Done' button, and it does not hide when the viewController pop
@develop1226 I once experienced a similar problem when I defined shouldChangeCharactersIn(), which discarded return keystroke. Could it be your problem ? If so, you should add this early in shouldChangeCharactersIn() if let char = string.cString(using: String.Encoding.utf8) { let isReturn = strcmp(char, "\\r") if (isReturn == -82) { backSpace = true } }
Topic: Community SubTopic: Apple Developers Tags:
Apr ’25
Reply to Unable to dismiss app's keyboard even after clicking 'Done' button, and it does not hide when the viewController pop
Welcome to the forum. It is UIKit app (not SwiftUI ?) Is it on device or simulator ? You can add this func in your viewController: func textFieldShouldReturn(_ textField: UITextField) -> Bool { self.view.endEditing(true) return false } Tell if it works, then don't forget to close the thread by marking the correct answer. Otherwise, could you show the complete attributes inspector for the TextField ? As well as its connections Inspector panel.
Topic: Community SubTopic: Apple Developers Tags:
Apr ’25
Reply to Advice for how to contact the app review team.
Welcome to the forum.   Is there any way to directly contact/speak with the reviewer who evaluates our app for approval? AFAIK, it is not possible to discuss directly with a reviewer.   How can we have a conversation beyond the copy pasted template responses being provided? Did you appeal the rejection ?   Any other suggestions for our next steps? Have you an idea of what, in your app other its metadata may lead the reviewer to think you are collecting funds ? When you update the submission, explain your point of view, clearly, synthetically and politely in the notes to reviewer ?
Apr ’25
Reply to Swift question:
In Apple Library, you have Swift programming Language. For most up to date reference (Swift 6.1): https://docs.swift.org/swift-book/documentation/the-swift-programming-language/aboutthelanguagereference/
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’25
Reply to Extra Trailing Closure for List {}
I tested your code (Xcode 16.3) and it works without issue. Which Xcode version do you use ? As you posted a screenshot only (you should paste the real code, as is), it is not possible to say if you have a non printing character somewhere. Show hidden characters to check (Menu: Editor -> Invisibles) Please show real and complete code if you need more help. Error may be elsewhere in your file as well.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25
Reply to App rejected under 1.1.6: “the app allows conversations that aren't real” – Need clarification
Did you try to set a minimum age of 18 ? And explain why:because it is to train people (adults) to cenversation, not for children to play.
Replies
Boosts
Views
Activity
May ’25
Reply to Behavior of Drawings in Portrait/Landscape Mode
As you save the stokes, going through eac stroke is probably the easiest ans safest way. Save the original canvas size. Don’t change the stores strokes, just adapt to the canvas size.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to ios 18.5
I fear no one here can tell. So, read carefully the release notes to check if the bug you have in mind is corrected. Did you file a bug report about it ? It would help.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to Behavior of Drawings in Portrait/Landscape Mode
I tested your code. When rotating, the canvas size changes, but the drawing remains the same. I cannot find immediately in your code what should make the existing drawing scale to the new format. Where is it ? Is it here ? override func draw(_ rect: CGRect) { super.draw(rect) guard let context: CGContext = UIGraphicsGetCurrentContext() else { return } for stroke in Database.strokes { context.setLineCap(.round) context.setLineJoin(.round) context.setLineWidth(2.0) context.setAlpha(1.0) context.setBlendMode(.normal) context.setStrokeColor(UIColor.black.cgColor) context.addPath(stroke.path) context.strokePath() } } But Database.strokes is not scaled on device rotation. Why should the drawing change ? Try to scale Database.strokes when you rotate device, then drawing will adapt.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to Random crash on app language change from app
Why do you create a new root VC ? You should not. You simply have to: use NSLocalizedString everywhere go to app setting to change the language there For this, I use openSettings: @objc func openSettings() { guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { return } if UIApplication.shared.canOpenURL(settingsUrl) { UIApplication.shared.open(settingsUrl, completionHandler: nil) } } It is called from an alert, could be from any button: Here is the alert action okAction = UIAlertAction(title: "any title you want", style: .default, handler: { (action) -> Void in self.openSettings()} )
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Tab Bar Controller Not Using Safe Area
On what View did you apply the constraints ? Could you: a screenshot explaining what you get and what you'd expect a screenshot of the Size Inspector in which constraints are defined
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
Apr ’25
Reply to Unable to dismiss app's keyboard even after clicking 'Done' button, and it does not hide when the viewController pop
@develop1226 I once experienced a similar problem when I defined shouldChangeCharactersIn(), which discarded return keystroke. Could it be your problem ? If so, you should add this early in shouldChangeCharactersIn() if let char = string.cString(using: String.Encoding.utf8) { let isReturn = strcmp(char, "\\r") if (isReturn == -82) { backSpace = true } }
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to 4.3a then 3.2f confused removed
What is your question to the developers community, at the end of (way too long, could not read it to the end) message ? If your question is for Apple, note that the forum is not an official channel to them.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Unable to dismiss app's keyboard even after clicking 'Done' button, and it does not hide when the viewController pop
Welcome to the forum. It is UIKit app (not SwiftUI ?) Is it on device or simulator ? You can add this func in your viewController: func textFieldShouldReturn(_ textField: UITextField) -> Bool { self.view.endEditing(true) return false } Tell if it works, then don't forget to close the thread by marking the correct answer. Otherwise, could you show the complete attributes inspector for the TextField ? As well as its connections Inspector panel.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Can not replicate the Apple Review error
Welcome to the forum. Which OS version do you use ? Did you test with iPadOS 18.4.1 ?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Advice for how to contact the app review team.
Welcome to the forum.   Is there any way to directly contact/speak with the reviewer who evaluates our app for approval? AFAIK, it is not possible to discuss directly with a reviewer.   How can we have a conversation beyond the copy pasted template responses being provided? Did you appeal the rejection ?   Any other suggestions for our next steps? Have you an idea of what, in your app other its metadata may lead the reviewer to think you are collecting funds ? When you update the submission, explain your point of view, clearly, synthetically and politely in the notes to reviewer ?
Replies
Boosts
Views
Activity
Apr ’25
Reply to Is the MacBook Air sufficient for iOS Development
You'll just have to take care with storage. It's OK if you manage it properly.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to How to implement this textfield in SwitfUI
What exactly do you want to mimic. Your question is not precise enough to get proper answer. In SwiftUI, that would be a List, with a VStack for each item (Surname, First Name, Company), and 2 Text in each VStack, with the proper font attributes…
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Swift question:
In Apple Library, you have Swift programming Language. For most up to date reference (Swift 6.1): https://docs.swift.org/swift-book/documentation/the-swift-programming-language/aboutthelanguagereference/
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Extra Trailing Closure for List {}
I tested your code (Xcode 16.3) and it works without issue. Which Xcode version do you use ? As you posted a screenshot only (you should paste the real code, as is), it is not possible to say if you have a non printing character somewhere. Show hidden characters to check (Menu: Editor -> Invisibles) Please show real and complete code if you need more help. Error may be elsewhere in your file as well.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25