Post

Replies

Boosts

Views

Activity

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 Simulate run/ bike move
Effectively, that should move: https://sarunw.com/posts/how-to-simulate-location-in-xcode-and-simulator/ But you should try with freeway drive (move will be larger and hence more visible, depending on the map scale). If you want to build your own GPX file: https://developer.apple.com/forums/thread/766507
Apr ’25
Reply to Xcode Build Failure
May be because image is upside down 😉 When you post a message, make it easy to use: image in correct orientation complete code so that one can test, in text, not only screenshot full error message Seems it is a problem to type check shelterViewModel.getShelter (row: row, column: column).productId == ViewConstants.LAYOUT_DUMMY_ what is productId type ? How are ViewConstants defined ? What is .LAYOUT_DUMMY_ ? Which type ? If it is not exactly the same as productId, then the error. Note: tests as shelterViewModel.getShelterOperationFormat() != true may be written !shelterViewModel.getShelterOperationFormat()
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
Reply to Multiple Info.plist related errors occur when uploading an Apple Watch app
You should ask on Flutter support. Issue may be a bad version of Flutter, or missing file….
Replies
Boosts
Views
Activity
Apr ’25
Reply to Simulate run/ bike move
Effectively, that should move: https://sarunw.com/posts/how-to-simulate-location-in-xcode-and-simulator/ But you should try with freeway drive (move will be larger and hence more visible, depending on the map scale). If you want to build your own GPX file: https://developer.apple.com/forums/thread/766507
Replies
Boosts
Views
Activity
Apr ’25
Reply to Xcode Build Failure
May be because image is upside down 😉 When you post a message, make it easy to use: image in correct orientation complete code so that one can test, in text, not only screenshot full error message Seems it is a problem to type check shelterViewModel.getShelter (row: row, column: column).productId == ViewConstants.LAYOUT_DUMMY_ what is productId type ? How are ViewConstants defined ? What is .LAYOUT_DUMMY_ ? Which type ? If it is not exactly the same as productId, then the error. Note: tests as shelterViewModel.getShelterOperationFormat() != true may be written !shelterViewModel.getShelterOperationFormat()
Replies
Boosts
Views
Activity
Apr ’25
Reply to Xcode use window 11 laptop 6 GB 512 GB storage
This is a forum for Apple products, not other platforms. Better ask on Microsoft support forum.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to How to make a UIButton resize its custom font text using `configurationUpdateHandler`?
loginButton.configurationUpdateHandler is called only on change of button state. So, have you checked the handler is ever called ? See details here: https://sarunw.com/posts/dynamic-button-configuration/
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to App Rejected Again - iPad Issue Despite Removing iPad Support
Welcome to the forum. My understanding is that any app, even if targetting only iPhone, must work on iPad in iPhone mode. Is that the case for your app ? How is it it does not work on iPad (have you found the bug door cause) ?
Replies
Boosts
Views
Activity
Apr ’25
Reply to General question about use of disassembled Apple products.
I'm not sure the forum is the right place to ask for legal advice. I'm pretty convinced no one at Apple will answer or even give a hint. And developers are not necessarily legal experts. So the best advice is probably: ask your lawyers and brace for the following if you decide to go.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Apr ’25