AWFTimelinePositionView
Objective-C
@interface AWFTimelinePositionView : UIView
Swift
class AWFTimelinePositionView : UIView
An AWFTimelinePositionView
object is used in an AWFTimelineView
instance to represent an animation’s current position along a timeline.
-
The primary text label displayed above the indicator. This is typically used for displaying the current time at a give position along the timeline.
Declaration
Objective-C
@property (nonatomic, strong, readonly) UILabel *textLabel;
Swift
var textLabel: UILabel! { get }
-
The secondary text label displayed below the indicator. This is typically used for displaying the current day and date at a given position along the timeline.
Declaration
Objective-C
@property (nonatomic, strong, readonly) UILabel *detailTextLabel;
Swift
var detailTextLabel: UILabel! { get }
-
The corner radius for the indicator.
Declaration
Objective-C
@property (nonatomic) CGFloat radius;
Swift
var radius: CGFloat { get set }
-
The fill color for the indicator.
Declaration
Objective-C
@property (nonatomic, strong) UIColor *fillColor;
Swift
var fillColor: UIColor! { get set }
-
The stroke color for the indicator.
Declaration
Objective-C
@property (nonatomic, strong) UIColor *strokeColor;
Swift
var strokeColor: UIColor! { get set }
-
The stroke width for the indicator.
Declaration
Objective-C
@property (nonatomic) CGFloat strokeWidth;
Swift
var strokeWidth: CGFloat { get set }
-
A Boolean indicating whether or not the indicator should appear in a pressed state. When in a pressed state, the indicator increases in scale.
Declaration
Objective-C
@property (nonatomic) BOOL pressed;
Swift
var pressed: Bool { get set }
-
Whether or not to update the indicator to the loading state. When in a loading state, the indiciator is scaled up to reveal an animated loading indicator and the text labels are hidden until the control is updated back to its default state.
Declaration
Objective-C
- (void)showLoading:(BOOL)loading;
Swift
func showLoading(_ loading: Bool)
Parameters
loading
A Boolean indicating whether the indicator should appear in a loading state