Back to Hero

HeroContext

docs/Classes/HeroContext.html

1.6.43.3 KB
Original Source

HeroContext

public class HeroContext

Undocumented

Show on GitHub

`

                container
                `

The container holding all of the animating views

Declaration

Swift

public let container: UIView

Show on GitHub

`

                fromViews
                `

A flattened list of all views from source ViewController

Declaration

Swift

public var fromViews: [UIView]

Show on GitHub

`

                toViews
                `

A flattened list of all views from destination ViewController

Declaration

Swift

public var toViews: [UIView]

Show on GitHub

`

                sourceView(for:)
                `

Declaration

Swift

public func sourceView(for heroID: String) -> UIView?

Return Value

a source view matching the heroID, nil if not found

Show on GitHub

`

                destinationView(for:)
                `

Declaration

Swift

public func destinationView(for heroID: String) -> UIView?

Return Value

a destination view matching the heroID, nil if not found

Show on GitHub

`

                pairedView(for:)
                `

Declaration

Swift

public func pairedView(for view: UIView) -> UIView?

Return Value

a view with the same heroID, but on different view controller, nil if not found

Show on GitHub

`

                snapshotView(for:)
                `

Declaration

Swift

public func snapshotView(for view: UIView) -> UIView

Return Value

a snapshot view for animation

Show on GitHub

`

                subscript(_:)
                `

Undocumented

Declaration

Swift

public subscript(view: UIView) -> HeroTargetState? { get set }

Show on GitHub

`

                clean()
                `

Undocumented

Declaration

Swift

public func clean()

Show on GitHub

`

                hide(view:)
                `

Undocumented

Declaration

Swift

public func hide(view: UIView)

Show on GitHub

`

                unhide(view:)
                `

Undocumented

Declaration

Swift

public func unhide(view: UIView)

Show on GitHub