Post

Replies

Boosts

Views

Activity

Reply to "Unexpectedly found nil while unwrapping an Optional value" in URL
At what point does GlobalString().link goes from an empty string to a valid URL before being used. The pattern around the usage of GlobalString is also incorrect. @main struct WallTaker_for_macOSApp: App { @AppStorage("showMenuBarExtra") private var showMenuBarExtra = true @StateObject var globalString = GlobalString() var body: some Scene { WindowGroup { ContentView() .environmentObject(globalString) } } } Then change link from an empty string to a valid URL string to prevent the URL init from returning nil. Also change from url = URL(string: GlobalString().link) to url = URL(string: globalString.link) from .task { await Wallpaper().fetchLink() } to something like .task { let wallpaper = Wallpaper() wallpaper.url = URL(globalString.link) await wallpaper.fetchLink() }
Topic: Programming Languages SubTopic: Swift Tags:
May ’24
Reply to Central American NSTimeZone instances returning CST rather than permanently CDT
This is the world standard Central Daylight Time (CDT) is a North American time zone that is used from the second Sunday in March to the first Sunday in November during Daylight Saving Time (DST). Central Standard Time (CST) is used during the remainder of the year. System developers will eventually adapt since a sudden change will result in repercussions in various financial markets and platforms. File a bug with Apple via the feedback app.
Topic: App & System Services SubTopic: General Tags:
May ’24
Reply to unable to download xcode 16 b3 SDKs
Only tvOS was seeded. @DTS
Replies
Boosts
Views
Activity
Jul ’24
Reply to AppleID Login failing in virtualized OS
Why both? Why not something like device support files for those wishing to keep the host intact?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Bug in .onmove for SwiftData models
The issue might be reconciling the list after popping the view with the data changes. what is the exact error at runtime?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to VoiceOver spells word letter by letter
This comes down to using proper grammar for voice over which is interpreting the CTA “simply go“ as an instruction to the user to perform an action vs describing to the user what is on the screen hence the reason TAB is being annunciated the way it is.
Replies
Boosts
Views
Activity
May ’24
Reply to Issue Running iOS 17.4 Simulator in Xcode with Flutter always say to download 17.5
This is not a Google/Flutter forum. Please visit the flutter forums over at google and file bug with them.
Replies
Boosts
Views
Activity
May ’24
Reply to VoiceOver spells word letter by letter
Break up or hyphenate simplygo to simply go and see what happens. Simplygo is basically instructing the user to perform an action, which happens to be - T A B.
Replies
Boosts
Views
Activity
May ’24
Reply to Timeline Apple legal name dispute
You're not going to get an answer here from 3rd party developers; contact Apple directly.
Replies
Boosts
Views
Activity
May ’24
Reply to Why is it not possible to provide a free trial for paid apps?
Because it's either, free, freemium, or paid without crippleware.
Replies
Boosts
Views
Activity
May ’24
Reply to "Unexpectedly found nil while unwrapping an Optional value" in URL
At what point does GlobalString().link goes from an empty string to a valid URL before being used. The pattern around the usage of GlobalString is also incorrect. @main struct WallTaker_for_macOSApp: App { @AppStorage("showMenuBarExtra") private var showMenuBarExtra = true @StateObject var globalString = GlobalString() var body: some Scene { WindowGroup { ContentView() .environmentObject(globalString) } } } Then change link from an empty string to a valid URL string to prevent the URL init from returning nil. Also change from url = URL(string: GlobalString().link) to url = URL(string: globalString.link) from .task { await Wallpaper().fetchLink() } to something like .task { let wallpaper = Wallpaper() wallpaper.url = URL(globalString.link) await wallpaper.fetchLink() }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Swift: Declaration name is not covered by macro
Is ServiceDependent implemented? Apply the macro directly to the struct or class and not the extension. What happens when this is done?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Increase in app crashes on iOS 17.4
The best thing to do will be to reach out to the team @ Capacitor and file a bug with them.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to CloudKit + CloudSave for Unity not building in Xcode
Report the bug to the Unity Development team on the Unity forums.
Replies
Boosts
Views
Activity
May ’24
Reply to Central American NSTimeZone instances returning CST rather than permanently CDT
This is the world standard Central Daylight Time (CDT) is a North American time zone that is used from the second Sunday in March to the first Sunday in November during Daylight Saving Time (DST). Central Standard Time (CST) is used during the remainder of the year. System developers will eventually adapt since a sudden change will result in repercussions in various financial markets and platforms. File a bug with Apple via the feedback app.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Removed due to Guideline 4.3(a) - Design - Spam
Back to the drawing board - app scans are pretty much accurate.
Replies
Boosts
Views
Activity
May ’24
Reply to Preview crashed because of a Fatal Error in ModelData.
There is no correlation between modelData and var sutra, so whatever you're trying to do will not work.
Replies
Boosts
Views
Activity
May ’24