Skip to content

Instantly share code, notes, and snippets.

@ChrisMash
Last active June 9, 2021 12:05
Show Gist options
  • Save ChrisMash/a348b6b65633cbc4906600cf04065f67 to your computer and use it in GitHub Desktop.
Save ChrisMash/a348b6b65633cbc4906600cf04065f67 to your computer and use it in GitHub Desktop.
A very simple Swift class and struct example
public struct SStruct {
public var integer: Int
}
public class SClass: NSObject {
@objc public func getInt() -> Int { ... }
@objc public func intToString(_ int: Int) -> String { ... }
@objc public func tryIntToString(_ int: Int) -> String? { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment