Functions
The following functions are available globally.
-
Returns the value devided by 100.
Declaration
Swift
public postfix func % (lhs: Double) -> Double
Parameters
lhs
The value to divide.
-
Returns the value devided by 100.
Declaration
Swift
public postfix func % (lhs: CGFloat) -> CGFloat
Parameters
lhs
The value to divide.
-
Throws a properly formatted error.
Declaration
Swift
public func SKFatalError( _ message: String, file: StaticString = #file, line: UInt = #line) -> Never
Parameters
message
The message of the fatal error.
file
The file that threw the fatal error.
line
The line where the fatal error was thrown.
Return Value
Never as the return type since the function unconditionally throws an error.
-
Execute a closure on the main thread.
Declaration
Swift
public func mainThread(_ closure: () -> ())
Parameters
closure
The closure to execute.