Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
Atsuya Sato edited this page Nov 30, 2018 · 3 revisions

Frame


frameRate: CGFloat

Available

iOS, OSX

Examples

print(frameRate)

Description

frameRate contains the approximate frame rate of a running sketch.


frameRate(_ fps: CGFloat)

Available

iOS, OSX

Examples

frameRate(4)

Description

Specifies the number of frames to be displayed every second


delay(napTime: Int)

Available

iOS, OSX

Examples

delay(100)

Description

The delay() function halts for a specified time


width: CGFloat

Available

iOS, OSX

Examples

print(width)

Description

Variable that stores the width of the view frame.


height: CGFloat

Available

iOS, OSX

Examples

print(height)

Description

Variable that stores the height of the view frame.


Clone this wiki locally