Drops Documentation

Class Drops

@available(iOSApplicationExtension, unavailable)
public final class Drops  

A shared class used to show and hide drops.

Nested Type Aliases

Drop​Handler

public typealias DropHandler = (Drop) -> Void

Handler.

Initializers

init(delay​Between​Drops:​)

public init(delayBetweenDrops: TimeInterval = 0.5)  

Create a new instance with a custom delay between drops.

Parameters

delay​Between​Drops Time​Interval

Delay between drops in seconds. Defaults to 0.5 seconds.

Properties

will​Show​Drop

public static var willShowDrop: DropHandler?  

A handler to be called before a drop is presented.

did​Show​Drop

public static var didShowDrop: DropHandler?  

A handler to be called after a drop is presented.

will​Dismiss​Drop

public static var willDismissDrop: DropHandler?  

A handler to be called before a drop is dismissed.

did​Dismiss​Drop

public static var didDismissDrop: DropHandler?  

A handler to be called after a drop is dismissed.

will​Show​Drop

public var willShowDrop: DropHandler? 

A handler to be called before a drop is presented.

did​Show​Drop

public var didShowDrop: DropHandler? 

A handler to be called after a drop is presented.

will​Dismiss​Drop

public var willDismissDrop: DropHandler? 

A handler to be called before a drop is dismissed.

did​Dismiss​Drop

public var didDismissDrop: DropHandler? 

A handler to be called after a drop is dismissed.

Methods

show(_:​)

public static func show(_ drop: Drop)  

Show a drop.

Parameters

drop Drop

Drop to show.

hide​Current()

public static func hideCurrent()  

Hide currently shown drop.

hide​All()

public static func hideAll()  

Hide all drops.

show(_:​)

public func show(_ drop: Drop)  

Show a drop.

Parameters

drop Drop

Drop to show.

hide​Current()

public func hideCurrent()  

Hide currently shown drop.

hide​All()

public func hideAll()  

Hide all drops.