HeroExtension

public class HeroExtension<Base>

Undocumented

Available where Base: UIView

  • id

    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 }

Available where Base: UIViewController

Available where Base: UINavigationController

Available where Base: UITabBarController

Available where Base: UIViewController