Class

CLKTimeIntervalGaugeProvider

A gauge that tracks time intervals.

Declaration

class CLKTimeIntervalGaugeProvider : CLKGaugeProvider

Overview

Use this gauge provider to visually show the amount of time that has elapsed within the specified time interval.

Topics

Getting Information about the Gauge

var startDate: Date

The starting time and date for the gauge’s time interval.

var endDate: Date

The ending time and date for the gauge’s time interval.

var startFillFraction: Float

The position of the leading edge of the time bar within the specified time interval.

var endFillFraction: Float

The position of the trailing edge of the time bar within the specified time interval.

Relationships

Inherits From

Conforms To

See Also

Data Providers

class CLKDateTextProvider

A formatted string that conveys a date without any time information.

class CLKImageProvider

An image displayed by a complication.

class CLKFullColorImageProvider

A full-color image displayed by a complication.

class CLKRelativeDateTextProvider

A formatted string that conveys the difference in time between the current date and a date that you specify.

class CLKSimpleTextProvider

A single line of text to display in your complication interface.

class CLKTextProvider

The common behavior for displaying text-based data in a complication.

class CLKTimeIntervalTextProvider

A formatted time range.

class CLKTimeTextProvider

A formatted time value.

class CLKSimpleGaugeProvider

A gauge that shows a fractional value.

class CLKGaugeProvider

An abstract superclass that provides all the common behaviors for the gauge providers.

let CLKSimpleGaugeProviderFillFractionEmpty: Float

A fill value indicating an empty gauge.

enum CLKGaugeProviderStyle

Visual styles available for gauges.