Functions
The following functions are available globally.
-
Returns the value devided by 100.
Declaration
Swift
public postfix func % (lhs: Double) -> DoubleParameters
lhsThe value to divide.
-
Returns the value devided by 100.
Declaration
Swift
public postfix func % (lhs: CGFloat) -> CGFloatParameters
lhsThe value to divide.
-
Throws a properly formatted error.
Declaration
Swift
public func SKFatalError( _ message: String, file: StaticString = #file, line: UInt = #line) -> NeverParameters
messageThe message of the fatal error.
fileThe file that threw the fatal error.
lineThe 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
closureThe closure to execute.
View on GitHub
Functions Reference