Post

Replies

Boosts

Views

Activity

Reply to Swiftui Bug - Button (only top part is clickable)
I've no sure explanation, but it seems that the TabView is overlaying the button and intercepting the taps. I made it work by adding a Spacer: struct ContentView: View { var body: some View { VStack(spacing: 0) { ScrollView(.horizontal) { HStack { Button(action: {print("Button tapped")}, label: { ZStack { Color.green Text("Button") .padding(8) .contentShape(Rectangle()) } }) } } .background(Color.blue) .frame(height: 40) Spacer() // <<-- ADDED this TabView { ZStack { Color.yellow Text("my view") } .onTapGesture { print("View tapped") } } } .background(Color.yellow) // <<-- ADDED this so that Spacer is yellow as well and not white } } You could file a bug report if you don't get a better explanation here.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’24
Reply to iOS 17.6.1 vs app issue
How are you concluded that the problem comes from the app ? Did the user repeat the test after closing the app ? When you tested the app, did you check in Xcode for processor use ?
Topic: Design SubTopic: General Tags:
Sep ’24
Reply to Software
There isn't even a question on your post which is totally incomprehensible and waste of time of those who look at it.. What is the purpose of the huge (uselessly huge) screenshot ? As you seem new at posting on the forum, you should read carefully the good practices: https://developer.apple.com/forums/thread/706527 Have a good day.
Sep ’24
Reply to Getting Rejected for more than 5 months!
Welcome to the forum. Specifically, this app is available in the same locations as another identical app you submitted to the App Store. That's whet the reviewer has detected (and may be several reviewers as you explain that this lasts for 5 months). Is it the case ? Do you see what is the other app the reviewer has in mind ?   i have made a lot of changes but still getting me that. What type of changes ? If it is only the look but the functionality and content are very similar, that will not solve the issue. If the changes are significant, then you should clearly and convincingly explain it in the comments to reviewer in the Appstore Connect submission form. It is then a good practice to explain also in the other app, next time you will update it.   i have had appeal and submit evidence that my app is unique but still not. Is it unique or does it have unique features compared to the other app ? It is crucial to be clear and straightforward when giving information to reviewers and not pretend what would obviously not be the case (app uniqueness)
Aug ’24
Reply to How to create another instance of Data without copy
Interesting question to learn about the internals of Swift (may be you should also ask on Swift.org). IMHO it is hazardous to try to guess what will be copied or not. You seen this in the doc about the initialiser: If the result is mutated and is not a unique reference, then the Data will still follow copy-on-write semantics. In this case, the copy will use its own deallocator. Therefore, it is usually best to only use this initializer when you either enforce immutability with let or ensure that no other references to the underlying data are formed. I have a few questions: when, in your code, would data be copied ? what is the problem (too large data ?) why not use a class type to be sure you pass reference
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’24
Reply to How to pass Child Class reference as Parent Class
The func getAllChallenges declares to return [ChallengeParent]. but it returns an array of LockdownChallenge That’s the cause of error. As you don’t show how ChallengeParent relates to other classes, hard to tell what to change precisely. But you have to resolve the inconsistency. Either by changing the return declaration of the func or by changing what it returns.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’24