UIViewController
extension UIViewController
-
Undocumented
Declaration
Swift
func performSegue(withIdentifier identifier: SegueIdentifier, sender: Any?)
-
Undocumented
Declaration
Swift
func alertError(message: String?, title: String?, optInActions: [UIAlertAction]? = nil, completion: (() -> Void)? = nil)
-
Undocumented
Declaration
Swift
func setupErrorAlert( title: String? = nil, message: String, okTitle: String? = nil, secondaryActionTitle: String? = nil, completion: (() -> Void)? = nil, secondaryActionCompletion: (() -> Void)? = nil ) -> UIAlertController
-
This method checks whether the below conditions in regards to background fetching have been met and creates the corresponding alert. Note that
store
is needed in the alert closure in order to track that the alert has already been shown once. The error alert should only be shown:- once
- if the background refresh is disabled
- if the user is not in power saving mode, because in this case the background refresh is disabled automatically. Therefore we have to explicitly check this.
Declaration
Swift
func createBackgroundFetchAlert( status: UIBackgroundRefreshStatus, inLowPowerMode: Bool, hasSeenAlertBefore: Bool, store: Store) -> UIAlertController?
-
Undocumented
Declaration
Swift
static func initiate(for storyboard: AppStoryboard, creator: ((NSCoder) -> UIViewController?)? = nil) -> Self
-
Convenience method to set the back button to “Back” / “Zurück”.
Declaration
Swift
func setupBackButton()