Last active
June 9, 2021 12:05
-
-
Save ChrisMash/a348b6b65633cbc4906600cf04065f67 to your computer and use it in GitHub Desktop.
A very simple Swift class and struct example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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