Post

Replies

Boosts

Views

Activity

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 SwiftUI Button is not tappable if an Image is followed in a VStack
Yes, there are many workarounds, as soon as it is understood that the cause is that clipping just clips the image, but not the view, which then overlays the button and intercept taps. The problem is not the VStack by itself. But VStack makes Button on Image sit close together, hence the problem. If VStack spacing is increased, no problem. You can also disable user interaction by adding this modifier to the image: .allowsHitTesting(false) Don't forget to close the thread on the correct answer.
Topic: UI Frameworks SubTopic: SwiftUI
Apr ’25
Reply to Directive 4.8 - Conception - Services de connexion
Bienvenue sur le forum. Est ce que votre app utilise 'un service de connexion tiers,' tel que Facebook Login, Google Sign-In, Sign in with Twitter, Sign In with LinkedIn, Login with Amazon, ou WeChat Login Si non, il faut le signaler au reviewer, que vous n'êtes pas dans ce cas. Si oui, vous pouvez soit utiliser la connexion avec Apple login, à la place de celle utilisée, soit montrer que vous respectez les exigences 2 et 3. Attention, la traduction que vous avez des guidelines est imprecise. Les exigences sont: le service de connexion limite la collecte de données au nom et à l'adresse électronique de l'utilisateur ; le service de connexion permet aux utilisateurs de ne pas divulguer leur adresse électronique lors de la création de leur compte ; et le service de connexion ne collecte pas les interactions avec votre application à des fins publicitaires sans le consentement de l'utilisateur. Et enfin, mettez à jour les copies d'écran si besoin.
Apr ’25
Reply to Programmatically Setting Constraints for CollectionViewCell Elements
Button is inside the cell ? It should be possible. Create the constraints and define IBOutlet. Then, for cell for which you want to change the constraints, call, cell.theConstraint.constant = newValue If button is in cell, do it in the button IBAction if button outside, in anotherView, call this in the IBAction for each cell you want to modify. You get the cell with let cell = collectionView!.cellForItemAtIndexPath(indexPath)
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’25
Reply to NSTableView.clickedRow sometimes is greater than number of rows
Do I always have to explicitly check if clickedRow is within the data source range? I would recommend to. What is surprising is to have a value of 1 if tour table has only one row. Did it have several rows at any time ? Could you detail the steps you had to get the crash you reported ? So, hard to say what the reason is. Could you show more code (such as dataSource and delegate functions of the TableView)
Topic: UI Frameworks SubTopic: AppKit Tags:
Apr ’25
Reply to SwiftUI Button is not tappable if an Image is followed in a VStack
Set the width and it works: .frame(width: 240, height: 240) Or change aspect ratio: .aspectRatio(contentMode: .fit)// .fill) Problem is that image (with fill aspect or without width) overlays the button, as you can see with this: Image(systemName: "square.and.arrow.up") .resizable() .aspectRatio(contentMode: .fill) .foregroundStyle(Color.black) .frame(height: 240) .border(Color.blue, width: 2) .clipped() .onTapGesture { print("Tapped the image") } You can visualise if you do not clip: Image(systemName: "square.and.arrow.up") .resizable() .aspectRatio(contentMode: .fill) .foregroundStyle(Color.black) .frame(height: 240) .border(Color.blue, width: 2) // .clipped()
Topic: UI Frameworks SubTopic: SwiftUI
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
Reply to SwiftUI Button is not tappable if an Image is followed in a VStack
Yes, there are many workarounds, as soon as it is understood that the cause is that clipping just clips the image, but not the view, which then overlays the button and intercept taps. The problem is not the VStack by itself. But VStack makes Button on Image sit close together, hence the problem. If VStack spacing is increased, no problem. You can also disable user interaction by adding this modifier to the image: .allowsHitTesting(false) Don't forget to close the thread on the correct answer.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Apr ’25
Reply to SwiftUI Button fade animation happens with a delay when in ScrollView
I tested (in simulator) and did not notice , any delay. I compared with the same button outside the scroll view, no difference.   most users won't see it I think. So, what's the point ? What animation do you mean ? What do you see ? What did you expect ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to NSTableView.clickedRow sometimes is greater than number of rows
OK, I see you are a seasoned developer… So, best is probably to make code robust by testing the validity of row. Could be a side effect of some values not yet updated when you use them, and it may be hard to find.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to What does the Xcode "Minimize Project References" checkbox do?
Where is this checkbox ?
Replies
Boosts
Views
Activity
Apr ’25
Reply to Directive 4.8 - Conception - Services de connexion
Bienvenue sur le forum. Est ce que votre app utilise 'un service de connexion tiers,' tel que Facebook Login, Google Sign-In, Sign in with Twitter, Sign In with LinkedIn, Login with Amazon, ou WeChat Login Si non, il faut le signaler au reviewer, que vous n'êtes pas dans ce cas. Si oui, vous pouvez soit utiliser la connexion avec Apple login, à la place de celle utilisée, soit montrer que vous respectez les exigences 2 et 3. Attention, la traduction que vous avez des guidelines est imprecise. Les exigences sont: le service de connexion limite la collecte de données au nom et à l'adresse électronique de l'utilisateur ; le service de connexion permet aux utilisateurs de ne pas divulguer leur adresse électronique lors de la création de leur compte ; et le service de connexion ne collecte pas les interactions avec votre application à des fins publicitaires sans le consentement de l'utilisateur. Et enfin, mettez à jour les copies d'écran si besoin.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Programmatically Setting Constraints for CollectionViewCell Elements
Button is inside the cell ? It should be possible. Create the constraints and define IBOutlet. Then, for cell for which you want to change the constraints, call, cell.theConstraint.constant = newValue If button is in cell, do it in the button IBAction if button outside, in anotherView, call this in the IBAction for each cell you want to modify. You get the cell with let cell = collectionView!.cellForItemAtIndexPath(indexPath)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to NSTableView.clickedRow sometimes is greater than number of rows
Do I always have to explicitly check if clickedRow is within the data source range? I would recommend to. What is surprising is to have a value of 1 if tour table has only one row. Did it have several rows at any time ? Could you detail the steps you had to get the crash you reported ? So, hard to say what the reason is. Could you show more code (such as dataSource and delegate functions of the TableView)
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to SwiftUI Button is not tappable if an Image is followed in a VStack
Set the width and it works: .frame(width: 240, height: 240) Or change aspect ratio: .aspectRatio(contentMode: .fit)// .fill) Problem is that image (with fill aspect or without width) overlays the button, as you can see with this: Image(systemName: "square.and.arrow.up") .resizable() .aspectRatio(contentMode: .fill) .foregroundStyle(Color.black) .frame(height: 240) .border(Color.blue, width: 2) .clipped() .onTapGesture { print("Tapped the image") } You can visualise if you do not clip: Image(systemName: "square.and.arrow.up") .resizable() .aspectRatio(contentMode: .fill) .foregroundStyle(Color.black) .frame(height: 240) .border(Color.blue, width: 2) // .clipped()
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Apr ’25