Post

Replies

Boosts

Views

Activity

Comment on UserDefaults and SSO Extensions
I'm testing some of the app group functionality at the moment and can confirm UserDefault.standard isn't affected by the extension. Simply put, only the app can access UserDefault.standard. Happy to open a new thread, but what would you recommend to move files from FileManager.default.urls to FileManager.default.containerURL to support data sharing between the app and extension. In particular, what's the best function to handle the update when a user downloads the latest version of an app. Appreciate any guidance πŸ˜ƒ
Feb ’22
Comment on UserDefaults on App Launch
On first launch, HasAchnowledgedUserLicence returns false as there is no key for it in UserDefaults and navigates to the UserLicenceViewController where some text is displayed for the user to agree to. The user tap "Agree" which sets HasAchnowledgedUserLicence to true then _ = navigationController?.popToRootViewController(animated: false) is invoked, where the condition is now met and the WelcomeViewController is shown.
Aug ’21
Comment on Semaphore Wait After Creating UIButton
@eskimo thanks for the response. I was trying to present a dialog either a UIView or UIAlertViewController from a custom framework. The function in the framework is something like func foo(arg) throws -> MyObject so showing an a dialog was going to be somewhat complicated, the UIAlertAction or UIAction handlers don't return and don't support throw. So I've moved the dialog to the app code not in the framework, unless you can think of another way. I suppose I could use delegates from the framework which the app code would implement and handle MyObject and any error that might occur.
Jun ’21