AWFBasicControlView

Objective-C

@interface AWFBasicControlView : UIView

Swift

class AWFBasicControlView : UIView

A AWFBasicControlView is a small view that provides a play/stop button for controlling a weather map’s animation and displays the current time and date for the map’s timeline.

  • The play button that controls a weather map’s timeline.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIButton *playButton;

    Swift

    var playButton: UIButton! { get }
  • The progress view that is displayed while an animation is loading data.

    Declaration

    Objective-C

    @property (readonly, nonatomic, strong) AWFCircularProgressView *progressView
  • The day label for the timeline.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UILabel *dayLabel;

    Swift

    var dayLabel: UILabel! { get }
  • The time label for the timeline.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UILabel *timeLabel;

    Swift

    var timeLabel: UILabel! { get }
  • Updates the day and time labels with the specified date.

    Declaration

    Objective-C

    @property (nonatomic) NSDate *currentTime;

    Swift

    unowned(unsafe) var currentTime: NSDate! { get set }
  • The default frame of the view.

    Declaration

    Objective-C

    + (CGRect)defaultFrame;

    Swift

    class func defaultFrame() -> CGRect
  • Updates the loading progress indicator based on the download progress when requesting remote data required for the animation. *

    Declaration

    Objective-C

    - (void)setProgress:(CGFloat)progress animated:(BOOL)animated;

    Swift

    func setProgress(_ progress: CGFloat, animated: Bool)

    Parameters

    progress

    The download progress of animation data, from 0.0 (none) to 1.0 (complete).

    animated

    A Boolean indicating whether or not the update should be animated.

  • Whether or not to display the loading indicator. This is used when data has to be requested from a remote source before an animation can begin playback. *

    Declaration

    Objective-C

    - (void)showLoading:(BOOL)loading;

    Swift

    func showLoading(_ loading: Bool)

    Parameters

    loading

    A Boolean indicating whether or not to display the loading indicator.