-
Undocumented
Declaration
Swift
public let base: Base
-
ID is the identifier for the view. When doing a transition between two view controllers, Hero will search through all the subviews for both view controllers and matches views with the same heroID.
Whenever a pair is discovered, Hero will automatically transit the views from source state to the destination state.
Declaration
Swift
var id: String? { get set }
-
isEnabled allows to specify whether a view and its subviews should be consider for animations. If true, Hero will search through all the subviews for heroIds and modifiers. Defaults to true
Declaration
Swift
var isEnabled: Bool { get set }
-
isEnabledForSubviews allows to specify whether a view’s subviews should be consider for animations. If true, Hero will search through all the subviews for heroIds and modifiers. Defaults to true
Declaration
Swift
var isEnabledForSubviews: Bool { get set }
-
Use modifiers to specify animations alongside the main transition. Checkout
HeroModifier.swift
for available modifiers.Declaration
Swift
var modifiers: [HeroModifier]? { get set }
-
modifierString** provides another way to set modifiers. It can be assigned through storyboard.
Declaration
Swift
var modifierString: String? { get set }
-
default hero animation type for presenting & dismissing modally
Declaration
Swift
var modalAnimationType: HeroDefaultAnimationType { get set }
-
Undocumented
Declaration
Swift
var modalAnimationTypeString: String? { get set }
-
Undocumented
Declaration
Swift
var isEnabled: Bool { get set }
-
default hero animation type for push and pop within the navigation controller
Declaration
Swift
var navigationAnimationType: HeroDefaultAnimationType { get set }
-
Undocumented
Declaration
Swift
var navigationAnimationTypeString: String? { get set }
-
default hero animation type for switching tabs within the tab bar controller
Declaration
Swift
var tabBarAnimationType: HeroDefaultAnimationType { get set }
-
Undocumented
Declaration
Swift
var tabBarAnimationTypeString: String? { get set }
-
Dismiss the current view controller with animation. Will perform a navigationController.popViewController if the current view controller is contained inside a navigationController
Declaration
Swift
func dismissViewController(completion: (() -> Void)? = nil)
-
Unwind to the root view controller using Hero
Declaration
Swift
func unwindToRootViewController()
-
Unwind to a specific view controller using Hero
Declaration
Swift
func unwindToViewController(_ toViewController: UIViewController)
-
Undocumented
Declaration
Swift
func unwindToViewController(withSelector: Selector)
-
Unwind to a view controller with given class using Hero
Declaration
Swift
func unwindToViewController(withClass: AnyClass)
-
Unwind to a view controller that the matchBlock returns true on.
Declaration
Swift
func unwindToViewController(withMatchBlock: (UIViewController) -> Bool)
-
Replace the current view controller with another VC on the navigation/modal/root view of UIWindow stack.
Declaration
Swift
func replaceViewController(with next: UIViewController, completion: (() -> Void)? = nil)