Drops Documentation

Enumeration Drop.​Duration

public enum Duration: Equatable, ExpressibleByFloatLiteral  

An enum representing a drop duration on screen.

Drop.Duration Drop.Duration Equatable Equatable Drop.Duration->Equatable ExpressibleByFloatLiteral ExpressibleByFloatLiteral Drop.Duration->ExpressibleByFloatLiteral

Member Of

Drop

An object representing a drop.

Conforms To

Equatable
ExpressibleByFloatLiteral

Initializers

init(float​Literal:​)

public init(floatLiteral value: TimeInterval)  

Create a new duration object.

Parameters

value Time​Interval

Duration in seconds

Enumeration Cases

recommended

case recommended

Hides the drop after 2.0 seconds.

seconds

case seconds(TimeInterval) 

Hides the drop after the specified number of seconds.