Post

Replies

Boosts

Views

Activity

Comment on Freshly inserted data through REST-request only displayed after reopening the view
@bergersilvio DataService needs to be a class for it be an @ObservableObject. Can you try storing dataPoints directly inside DataService and ensure it is @Published? I feel that should help. If that doesn't work if it is ok with you could commit your code (or take a backup) then comment out all unnecessary portions till you can come down to a minimum reproducible code. Commenting out will help you isolate the issue. Then you could create a simple POC so that others can test.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’22
Comment on Logger on Xcode console
@darkpaw sorry I should have mentioned earlier, it wouldn't work in the following logger.debug("Item name = \(itemName, privacy: .public)"), see my updated "Non-sensitive logging (Public)"
Replies
Boosts
Views
Activity
Nov ’22
Comment on Logger on Xcode console
@eskimo could you have a look at this?
Replies
Boosts
Views
Activity
Nov ’22
Comment on On macOS Open system settings > Security & Privacy > Calendar - Follow-up: 814223720
@eskimo, Hoping one day macOS System Settings has app level settings, IMHO that would be a safer option (just like in iOS) so that devs don't abuse the option. Sorry just wishful thinking, thanks once again
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on On macOS Open system settings > Security & Privacy > Calendar - Follow-up: 814223720
@eskimo I forgot to mention I have enabled Calendar under Capabilities and added INFOPLIST_KEY_NSCalendarsUsageDescription which prompts the user for Calendar access when needed
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on On macOS Open system settings > Security & Privacy > Calendar - Follow-up: 814223720
@eskimo Thanks a lot, just curious how in the mac Maps app when location permission is not granted, when the user taps on current location button it shows an alert which opens the Privacy & Security pane
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on On macOS Open system settings > Security & Privacy > Calendar - Follow-up: 814223720
@Claude31 The main issue is with the URL string. Question is whether this opening "x-apple.systempreferences:com.apple.preference.security?Privacy_Calendars" URL would be considered as accessing private API in the Apple Store. Original code I posted works but not sure it is allowed.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on Freshly inserted data through REST-request only displayed after reopening the view
@bergersilvio call objectWillChange.send() in your model when you want the View to change.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on Cannot debug widget in a watch target using Xcode 14.1
@pabloconnell hope that helps
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on Freshly inserted data through REST-request only displayed after reopening the view
@bergersilvio, I meant in your SwiftUI code use only @Published properties don't use something like DATA.depots.dataPoints use DATA.dataPoints instead. Good luck
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on Freshly inserted data through REST-request only displayed after reopening the view
@bergersilvio DataService needs to be a class for it be an @ObservableObject. Can you try storing dataPoints directly inside DataService and ensure it is @Published? I feel that should help. If that doesn't work if it is ok with you could commit your code (or take a backup) then comment out all unnecessary portions till you can come down to a minimum reproducible code. Commenting out will help you isolate the issue. Then you could create a simple POC so that others can test.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on Widgets won't preview
is this on macOS? On macOS I am facing issues as well with widget previews, iOS widget previews are ok. Use the following modifier ..previewContext(WidgetPreviewContext(family: .systemSmall))
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to make Xcode Cloud compile code compiled in Xcode beta ?
I was asked to get in touch with https://developer.apple.com/contact/, I was quite busy with other work that I couldn't contact them. You could contact them. If you happen to find a solution post it
Replies
Boosts
Views
Activity
Oct ’22
Comment on What build setting causes `PreviewProvider`s to be stripped when archiving?
Please read my suggestion below for Apple to come up with a property wrapper to mark SwiftUI preview structs. Hopefully it gets fixed. Currently there is a lot of code with #if DEBUG <…> #endif
Replies
Boosts
Views
Activity
Sep ’22
Comment on CoreData CloudKit sync resulting in main thread initialisation issue
If you want it to run on the main thread, why don't you mark it as @MainActor (Swift Concurrency)?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on NavigationSplitView sidebar Links not working after navigating back
@xcor could you post the workaround code, I tried setting it nil but didn't seem to work for me, not sure I am missing something
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22