DownloadTrackerCell

open class DownloadTrackerCell: UITableViewCell

DownloadTrackerCell is the default UITableViewCell used in DownloadListController. Its style is .subtitle.

It adds three subviews:

  1. a UILabel to display download speed;
  2. a UIProgressView to display download progress;
  3. a UIButton to pause/resume download.

These three views are customizable in DownloadListController:

  1. allowsTrackingSpeed: determine whether to display speed.
  2. allowsTrackingProgress: determine whether to display download progress bar.
  3. cellAccessoryButtonStyle: custom button appearance and action method.

For any type UITableViewCell in DownloadListController, their imageView and textLabel are customziable:

  1. cellImageViewStyle: display an icon, or index, or none.
  2. isFileNamePriorThanURL: display file name or its download URL.
  • A UILabel to display download speed.

    Declaration

    Swift

    public var speedLabel: UILabel?
  • A UIProgressView to display download progress.

    Declaration

    Swift

    public var progressView: UIProgressView?
  • A UIButton to be contentView’s accessortView.

    Declaration

    Swift

    public private(set) var accessoryButton: UIButton?
  • Init from storyboard/nib file. You should set its style to .subtitle in the storyboard/nib file.

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Change subview backgroundColor to cell backgroundColor

    Declaration

    Swift

    override open func didMoveToSuperview()