Functions
The following functions are available globally.
-
Undocumented
Declaration
Swift
func getDefaultViewContents() -> String -
Undocumented
Declaration
Swift
public func dismissCurrentResponder() -
Undocumented
Declaration
Swift
func assignIfChanged<Object: AnyObject, T: Equatable>( _ object: Object, _ keyPath: ReferenceWritableKeyPath<Object, T>, newValue: T ) -
Undocumented
Declaration
Swift
func unserialize<T>(_ s: String, type: T.Type = T.self) throws -> T? where T : Decodable -
Undocumented
Declaration
Swift
func serialize(_ a: AnyCodable) throws -> String -
Undocumented
Declaration
Swift
func stringFromFile(_ file: String, _ ext: String = "json") throws -> String -
Undocumented
Declaration
Swift
func jsonDataFromFile(_ file: String, _ ext: String = "json") throws -> Data -
Undocumented
Declaration
Swift
func jsonErrorHandling(_: JSONDecoder, _ convert: () throws -> Void) -
Undocumented
Declaration
Swift
func getCodingPathString(_ codingPath: [CodingKey]) -> String -
Undocumented
Declaration
Swift
func JSONErrorReporter(_ convert: () throws -> Void) throws -
Undocumented
Declaration
Swift
func jsonErrorHandling(_ decoder: Decoder, _ convert: () throws -> Void) -
Undocumented
Declaration
Swift
func serializeJSON(_ encode: (_ encoder: JSONEncoder) throws -> Data) -> String? -
Undocumented
Declaration
Swift
func decodeEdges(_ decoder: Decoder, _ key: String, _ source: Item) -
Undocumented
Declaration
Swift
func dataItemListToArray(_ object: Any) -> [Item] -
retrieves item from realm by type and uid.
Declaration
Swift
func getItem(_ type: String, _ uid: Int) -> Item?Parameters
typerealm type
memriIDitem memriID
Return Value
retrieved item. If the item does not exist, returns nil.
-
Undocumented
Declaration
Swift
func me() -> Person
Functions Reference