Skip to content

PillView

Awesomeplayer165 edited this page Mar 6, 2022 · 1 revision

PillView

Class

A UIView to display two forms of dynamic content based on the conditions or needs of a developer.

Declaration

class PillView

Initializers

  • init()
    • The basic initialization of PillView, which includes all of the default parameters.
  • init(activityIndicator: UIActivityIndicatorView)
    • This allows developers to use their own UIActivityIndicator instead of the default.
  • init(isNavigationControllerPresent: Bool)
    • Initialize this value overriding the isNavigationControllerPresent value
  • init(showType: PillShowType)
    • This sets the showType ahead of when the computer will automatically set the value of this.
  • init(width: Int, height: Int) Initializes with different values than the default width and height values

Instance Properties

  • var activityIndicator: UIActivityIndicatorView
    • A UIActivityIndicatorView for the asynchronous task of the PillShowType.ongoingTask.
  • var errorSymbol: UIImage
    • Shows the error symbol that should be used.
  • var failureSymbol: UIImage
    • Shows the failure symbol that should be used.
  • var height: Int
    • The height of the pillView.
  • var isAwaitingTaskCompletion: Bool
    • A Boolean value indicating whether the current PillView is waiting for a task to complete.
  • var isNavigationControllerPresent: Bool
    • A Boolean value to allowing PillView to work around having a UINavigationController at the top of the screen.
  • var pillView: UIView
    • The UIView itself that holds the content of the PillView, such as a title and imageView.
  • var showType: PillShowType?
    • This helps developers determine which type the PillShowType.
  • var successSymbol: UIImage
    • Shows the success symbol that should be used.
  • var titleLabel: UILabel
    • A UILabel align on the pillView’s center-left to display a message.
  • var vcView: UIView?
    • The desired UIView that you would like the pillView displayed on.
  • var width: Int
    • The width of the pillView.

Type Properties

  • static var activePillBoxViews: Set<PillView> The Set holds unique PillView shown on the screen at the given time.

Default Implementations

  • Equatable Implementations
  • Hashable Implementations

Relationships

  • Conforms To
    • Swift.Equatable
    • Swift.Hashable

PillView

  • init()
  • init(activityIndicator: UIActivityIndicatorView)
  • init(isNavigationControllerPresent: Bool)
  • init(showType: PillShowType)
  • init(width: Int, height: Int)
  • var activityIndicator: UIActivityIndicatorView
  • var errorSymbol: UIImage
  • var failureSymbol: UIImage
  • var height: Int
  • var isAwaitingTaskCompletion: Bool
  • var isNavigationControllerPresent: Bool
  • var pillView: UIView
  • var showType: PillShowType?
  • var successSymbol: UIImage
  • var titleLabel: UILabel
  • var vcView: UIView?
  • var width: Int
  • static var activePillBoxViews: Set
Clone this wiki locally