Post

Replies

Boosts

Views

Activity

Reply to ForEach creates Views twice
That's an old problem, as reported here: https://developer.apple.com/forums/thread/718281 That's caused by ForEach effectively, as no error here: var body: some View { // ForEach(1...1, id: \.self) { i in subview(0) // } Some explanation here: it is due to the way SwiftUI performs init. https://www.reddit.com/r/SwiftUI/comments/166m0tn/double_initiation_in_foreach_loop/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24
Reply to XCode 15 warnings
For sure, Xcode may be very verbose and some warnings are hard to solve (even impossible). But you can silence the warnings and just keep errors. In the Issues navigator click on x at the bottom on the Filter line Could you show the real and more complete code, so that we can understand these "hang pont" (???) messages
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’24
Reply to Complete Beginner - Any help is greatly appreciated
Welcome to the forum I really really don't like reading straight from the documentation (although who does honestly) Those who really want to get deep understanding on how things work… 😉 Some short synthetic doc that may help: https://developer.apple.com/documentation/gamekit/creating_turn-based_games this video series should provide most of what you need: https://www.youtube.com/watch?v=HmlW18K_q_c
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’24
Reply to SwiftUI "pushing the same view controller instance" Exception
Have you identified the concerned view ? When you've found, add the following test in this View's body: .onAppear { print("View appeared!") } .onDisappear { print("View disappeared!") } And tell what you see when bugging in simulator. Does it occur when you navigate very rapidly ? If so, that would probably mean that SwiftUI had no time to pop the view before pushing again. See old discussion here (not SwiftUI): https://stackoverflow.com/questions/7083124/pushing-the-same-view-controller-instance-more-than-once-is-not-supported-exce
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24
Reply to Will my app belong to the non-trader status if there are no in-app purchases and profits through the app?
Trader status is not linked to a specific app but to your organisation. I extracted and outlined some key points from: https://developer.apple.com/help/app-store-connect/manage-compliance-information/manage-european-union-digital-services-act-trader-requirements/ To determine if you're a trader, you should consider a range of non-exhaustive and non-exclusive factors (see those listed on page 2 in the EC’s Guidance), which may include: Whether you make revenue as a result of your app, for example if your app includes in-app purchases, or if it's a paid or ad-sponsored app — especially if you're transacting in large volumes; Whether you engage in commercial practices towards consumers, including advertising, or promoting products or services; Whether you're registered for VAT purposes; and Whether you develop your app in connection with your trade, business, craft, or profession—meaning that you’re acting in a professional/business capacity. You're unlikely to be a trader for EU law purposes if you're acting “for purposes which are outside your trade, business, craft, or profession.” For example, if you're a hobbyist and you developed your app with no intention of commercializing it, you may not be considered a trader. Regardless of whether you’re an individual developer or organization, if you have a legal status associated with a business activity, that would suggest you may be a trader. IMHO, from what you wrote, you develop the app in connection with your business, hence you should be considered as a trader.
Apr ’24
Reply to When using index in a ForEach loop in SwiftUI, you might encounter an "index out of range" error.
The way I do it is by using enumerated and .offset: ForEach(Array(data.enumerated()), id: \.offset) { (index, d) in Why do you zip ? Try to replace: ForEach(Array(zip(viewModel.testValues.indices, viewModel.testValues)), id:\.1) { index, data in by ForEach(Array(viewModel.testValues.enumerated()), id:\.offset) { index, data in
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Where to find XCode13?
You can download any release here: https://xcodereleases.com Note: you should even be able to install Xcode 14.2.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Apple Care tells users who cannot download/update app from App Store that the third-party developer is responsible
Does the problem repeats with different users ? If so, just an idea: did you check their OS version ? Is it compatible with your deployment target ?
Replies
Boosts
Views
Activity
Apr ’24
Reply to History and your help
Except regretting the good ol'days, what is the purpose of your long post ? What do you expect other developers to do for you ?
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to ForEach creates Views twice
That's an old problem, as reported here: https://developer.apple.com/forums/thread/718281 That's caused by ForEach effectively, as no error here: var body: some View { // ForEach(1...1, id: \.self) { i in subview(0) // } Some explanation here: it is due to the way SwiftUI performs init. https://www.reddit.com/r/SwiftUI/comments/166m0tn/double_initiation_in_foreach_loop/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to XCode 15 warnings
For sure, Xcode may be very verbose and some warnings are hard to solve (even impossible). But you can silence the warnings and just keep errors. In the Issues navigator click on x at the bottom on the Filter line Could you show the real and more complete code, so that we can understand these "hang pont" (???) messages
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to When are Storyboards getting ditched?
That's your point of view. Many others find UIKit going (at least now) more flexibility and control over the app execution. In some cases, that's critical.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Will apple reject my app if i redirect users to general settings?
AFAIK, it is authorised to redirect to settings as well as to the app's settings. If going to settings, user will have to select General by itself.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Upgraded to Sonoma which upgraded Xcode to 15.3 - Now my app won't run
Which simulator did you select (which iOS version) ? A few ideas: Check in the project how deployment targets are defined open info.plist to see if the file is corrupted ? (you can open as Source Code, to read the html do you get a message that asks you to update to most recent settings ? If so, do it.
Replies
Boosts
Views
Activity
Apr ’24
Reply to XCode 15 - Missing Error Messages
How did you switch them off ? Normally you select Show issues navigator (at the top of the left panel of Xcode-. Then ay the bottom, you have a Filter line. Click on the rightmost icon to turn on / off (show errors only or all warnings as well).
Replies
Boosts
Views
Activity
Apr ’24
Reply to Complete Beginner - Any help is greatly appreciated
Welcome to the forum I really really don't like reading straight from the documentation (although who does honestly) Those who really want to get deep understanding on how things work… 😉 Some short synthetic doc that may help: https://developer.apple.com/documentation/gamekit/creating_turn-based_games this video series should provide most of what you need: https://www.youtube.com/watch?v=HmlW18K_q_c
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to How to delete the bookmark in the xcode file sign
Just open Bookmark navigator and delete the bookmark (select then backspace). If OK, don't forget to close the thread by marking this answer as correct. Good continuation.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Invalid Binary, no reason given
Which version of Xcode did you use to generate binary ? Do you use any 3rd party library ? Maybe some useful info here ? https://forums.developer.apple.com/forums/thread/676166
Replies
Boosts
Views
Activity
Apr ’24
Reply to SwiftUI "pushing the same view controller instance" Exception
Have you identified the concerned view ? When you've found, add the following test in this View's body: .onAppear { print("View appeared!") } .onDisappear { print("View disappeared!") } And tell what you see when bugging in simulator. Does it occur when you navigate very rapidly ? If so, that would probably mean that SwiftUI had no time to pop the view before pushing again. See old discussion here (not SwiftUI): https://stackoverflow.com/questions/7083124/pushing-the-same-view-controller-instance-more-than-once-is-not-supported-exce
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Will my app belong to the non-trader status if there are no in-app purchases and profits through the app?
Trader status is not linked to a specific app but to your organisation. I extracted and outlined some key points from: https://developer.apple.com/help/app-store-connect/manage-compliance-information/manage-european-union-digital-services-act-trader-requirements/ To determine if you're a trader, you should consider a range of non-exhaustive and non-exclusive factors (see those listed on page 2 in the EC’s Guidance), which may include: Whether you make revenue as a result of your app, for example if your app includes in-app purchases, or if it's a paid or ad-sponsored app — especially if you're transacting in large volumes; Whether you engage in commercial practices towards consumers, including advertising, or promoting products or services; Whether you're registered for VAT purposes; and Whether you develop your app in connection with your trade, business, craft, or profession—meaning that you’re acting in a professional/business capacity. You're unlikely to be a trader for EU law purposes if you're acting “for purposes which are outside your trade, business, craft, or profession.” For example, if you're a hobbyist and you developed your app with no intention of commercializing it, you may not be considered a trader. Regardless of whether you’re an individual developer or organization, if you have a legal status associated with a business activity, that would suggest you may be a trader. IMHO, from what you wrote, you develop the app in connection with your business, hence you should be considered as a trader.
Replies
Boosts
Views
Activity
Apr ’24