Functions
The following functions are available globally.
-
Undocumented
Declaration
Swift
public func giniCaptureBundle() -> Bundle
-
Returns an optional
UIImage
instance with the givenname
preferably from the client’s bundle.Declaration
Swift
public func UIImageNamedPreferred(named name: String) -> UIImage?
Parameters
name
The name of the image file without file extension.
Return Value
Image if found with name.
-
Returns an optional
UIColor
instance with the givenname
preferably from the client’s bundle.Declaration
Swift
public func UIColorPreferred(named name: String) -> UIColor
Parameters
name
The name of the UIColor from
GiniColors
asset catalog.Return Value
color if found with name.
-
Returns a localized string resource preferably from the client’s bundle.
Declaration
Swift
public func NSLocalizedStringPreferredFormat(_ key: String, fallbackKey: String = "", comment: String, isCustomizable: Bool = true) -> String
Parameters
key
The key to search for in the strings file.
comment
The corresponding comment.
Return Value
String resource for the given key.