generated from Awesomeplayer165/Template
-
Notifications
You must be signed in to change notification settings - Fork 2
PillView
Awesomeplayer165 edited this page Mar 6, 2022
·
1 revision
A UIView to display two forms of dynamic content based on the conditions or needs of a developer.
class PillView
-
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.
- This allows developers to use their own
-
init(isNavigationControllerPresent: Bool)
- Initialize this value overriding the
isNavigationControllerPresent
value
- Initialize this value overriding the
-
init(showType: PillShowType)
- This sets the
showType
ahead of when the computer will automatically set the value of this.
- This sets the
-
init(width: Int, height: Int)
Initializes with different values than the default width and height values
- var
activityIndicator
:UIActivityIndicatorView
- A
UIActivityIndicatorView
for the asynchronous task of thePillShowType.ongoingTask
.
- A
- 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.
- A Boolean value indicating whether the current
- var
isNavigationControllerPresent
:Bool
- A Boolean value to allowing PillView to work around having a
UINavigationController
at the top of the screen.
- A Boolean value to allowing PillView to work around having a
- 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 thepillView
’s center-left to display a message.
- A
- var
vcView
:UIView?
- The desired
UIView
that you would like thepillView
displayed on.
- The desired
- var
width
:Int
- The width of the
pillView
.
- The width of the
- static var
activePillBoxViews
:Set<PillView>
TheSet
holds uniquePillView
shown on the screen at the given time.
- Equatable Implementations
- Hashable Implementations
- Conforms To
- Swift.Equatable
- Swift.Hashable
- 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