Post

Replies

Boosts

Views

Activity

Comment on How to get the UIViewController instance for displaying dialog when the app starts up?
for newer version (after iOS14) of Xcode, both SceneDelegate.swift and AppDelegate.swift are no longer automatically generated. Using Xcode 12.x, you can choose Life Cycle as UIKit App Delegate for iOS App, and Xcode will generate both SceneDelegate.swift and AppDelegate.swift. Better forget that unreliable link and make Xcode generate them, after that, you can move other SwiftUI files into the new project.
Aug ’21
Comment on API Error
Thanks for clarifying. Readers would not be able to guess you have some code like myStore.product!.title somewhere. Neither able to guess what myStore is nor how the property product is updated.
Aug ’21
Comment on Presentation single with code
@narcisfromgirona Why do you make the var private? The keyword private is an access modifier which limits the access to the property (or method) only within the same class. It is a good habit not to show some members required only for internal processing for abstraction and may help Swift compiler optimize better.
Aug ’21