AWFTimelineBarView

Objective-C

@interface AWFTimelineBarView : UIView

Swift

class AWFTimelineBarView : UIView

An AWFTimelineBarView object is used in an AWFTimelineView instance to represent the timeline bar and full date/time range of the animation.

  • The current data loading progress for an animation, from 0.0 to 1.0. Updating this value will adjust the width of the bar filled using the barFillColor color and is used to represent what percentage of the data required for an animation has loaded, if required.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat progress;

    Swift

    var progress: CGFloat { get set }
  • Indicates the position along the timeline, from 0.0 (beginning) to 1.0 (ending), where the date and time range changes to be in the future. This position be just to the right of the current date and time. If the timeline range does not include the current date and time, then this value will not be used.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat futurePosition;

    Swift

    var futurePosition: CGFloat { get set }
  • The fill color used to indicate the portion of the timeline that has been loaded based on the progress value.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *barFillColor;

    Swift

    var barFillColor: UIColor! { get set }
  • The fill color used to indiciate the time range in the future. The timeline bar will be filled with this color from the position along the timeline bar indicated by futurePosition and extend to the right bounds of the bar.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *futureBarFillColor;

    Swift

    var futureBarFillColor: UIColor! { get set }
  • The stroke color to apply around the timeline bar.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *barStrokeColor;

    Swift

    var barStrokeColor: UIColor! { get set }