-
The default assigned instance of
Tweener.Declaration
Swift
public static var `default`: Tweener { get } -
The main shared instance of
Tweener.Declaration
Swift
public static let shared: Tweener -
An instance of
Tweenerwhere all tweens are manually controlled and updated.Declaration
Swift
public static let manual: Tweener -
Returns a reference to a custom
Tweenerinstance by its identifier. TheTweenerinstance is created if it does not already exist.Declaration
Swift
public static func custom(_ identifier: String) -> TweenerParameters
identifierThe identifier of the custom
Tweenerinstance.Return Value
The custom
Tweenerinstance for the given identifier. -
The identifier of this
Tweenerinstance.Declaration
Swift
public let identifier: String -
Assigns this instance of
Tweeneras the default instance.Declaration
Swift
public func setAsDefault()
-
Creates a
Tweenthat can be customized to animate properties on a target instance.Declaration
Swift
@discardableResult func animate<Target>(_ target: Target) -> TweenAnimator<Target> where Target : TweenableParameters
targetThe
Tweenableinstance on which properties are animated.Return Value
The
Tweenhandle that manages and controls the animation.
-
The number of tweens crrently being tracked.
Declaration
Swift
var count: Int { get }
-
Invokes
updateon all currently tracked tweens.Declaration
Swift
func updateAll(by deltaTime: TimeInterval)Parameters
deltaTimeThe amount of seconds passed since the last update.
-
Invokes
starton all currently tracked tweens.Declaration
Swift
func startAll() -
Invokes
stopon all currently tracked tweens.Declaration
Swift
func stopAll() -
Invokes
stopon all currently tracked tweens.Declaration
Swift
func restartAll() -
Invokes
pauseon all currently tracked tweens.Declaration
Swift
func pauseAll() -
Invokes
resumeon all currently tracked tweens.Declaration
Swift
func resumeAll() -
Invokes
completeon all currently tracked tweens.Declaration
Swift
func completeAll() -
Invokes
killon all currently tracked tweens.Declaration
Swift
func killAll()
View on GitHub
Tweener Class Reference