RSDAppDelegate
open class RSDAppDelegate : UIResponder, RSDAppOrientationLock, RSDAlertPresenter
RSDAppDelegate
is an optional class that can be used as the appDelegate for an application.
Using this class as the base class of your app delegate is not required, but is included as a possible solution to certain common issues with setting up an app.
-
Override to set the shared factory on startup.
Declaration
Swift
open func instantiateFactory() -> RSDFactory
-
Override and return a non-nil value to set up using a custom color palette with your app.
Declaration
Swift
open func instantiateColorPalette() -> RSDColorPalette?
-
Convenience method for presenting a modal view controller.
Declaration
Swift
open func presentModal(_ viewController: UIViewController, animated: Bool, completion: (() -> Void)?)
-
The default orientation lock if not overridden by setting the
orientationLock
property.An application that requires the default to be either portrait or landscape, while still setting the app allowed orientations to allow some view controllers to rotate must override this property to return those orientations only.
Declaration
Swift
open var defaultOrientationLock: UIInterfaceOrientationMask { get }
-
The
orientationLock
property is used to override the default allowed orientations.Seealso
defaultOrientationLock
Declaration
Swift
open var orientationLock: UIInterfaceOrientationMask?
-
Declaration
Swift
open func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask
Return Value
The
orientationLock
or thedefaultOrientationLock
if nil.