RoutableObject
public struct RoutableObject<VM> : AnyRoutableObject where VM : BMViewModel
A Routable object is an element to be passed to the router for the latter to display.
-
The unique identifier associated with the ViewController to load.
Declaration
Swift
public let screenIdentifier: ScreenIdentifier -
The view model to pass to the view controller once created.
Declaration
Swift
public let viewModel: VM -
The navigation style in which to present the view controller.
Declaration
Swift
public let navigationStyle: NavigationStyle -
Whether or not to animate the object when presenting it.
Declaration
Swift
public let animated: Bool -
Creates and returns and instance of
Declaration
Swift
public init( screenIdentifier: ScreenIdentifier, viewModel: VM, navigationStyle: NavigationStyle, animated: Bool = true ) -
Declaration
Swift
var anyViewModel: BMViewModel { get }
View on GitHub
RoutableObject Structure Reference