TransitioningNavigationView

public final class TransitioningNavigationView : UIView

Undocumented

  • Undocumented

    Declaration

    Swift

    private var backButton: UIButton
  • Undocumented

    Declaration

    Swift

    private lazy var stackView: UIStackView { get set }
  • Undocumented

    Declaration

    Swift

    private lazy var titleLabel: UILabel { get set }
  • Undocumented

    Declaration

    Swift

    private lazy var backgroundView: UIView { get set }
  • Undocumented

    Declaration

    Swift

    private lazy var labelContainerView: UIView { get set }
  • Undocumented

    Declaration

    Swift

    private var titleTopConstraint: NSLayoutConstraint?
  • Undocumented

    Declaration

    Swift

    private let options: TransitioningNavigationViewOptions
  • Undocumented

    Declaration

    Swift

    fileprivate static let bottomOffset: CGFloat
  • Undocumented

    Declaration

    Swift

    fileprivate static let labelGutter: CGFloat
  • Transitions the alpha of the background view with the shadow.

    Declaration

    Swift

    func transition(percent: CGFloat)

    Parameters

    percent

    Percentage of the view to show.

  • Transitions the label given an offset.

    Declaration

    Swift

    func transitionLabel(offset: CGFloat)

    Parameters

    offset

    Offset to move the label view by.

  • Sets the title of the label with tail truncation.

    Declaration

    Swift

    func set(title: String)

    Parameters

    title

    Title to set the label to.

  • Calculates the transition percentage with the given offset.

    Declaration

    Swift

    func transitionPercentageWith(offset: CGFloat) -> CGFloat

    Parameters

    offset

    Offset to calculate the percentage with.

    Return Value

    Percentage. (e.g. 0.2)