PropertyListReadable
public protocol PropertyListReadable
Mechanica
Types conforming to PropertyListReadable
can be used to read values from a Property List (.plist) file.
-
Mechanica
Protocol
PropertyListReadable
.Dictionary representing the Propery List File.
Declaration
Swift
var propertyList: NSDictionary
-
bool(forKeyPath:)
Extension methodMechanica
Returns an
Bool
value for a specified key path or nil if the key was not found.Declaration
Swift
public final func bool(forKeyPath keyPath: Key<Bool>) -> Bool?
-
string(forKeyPath:)
Extension methodMechanica
Returns an
String
value for a specified key path or nil if the key was not found.Declaration
Swift
public final func string(forKeyPath keyPath: Key<String>) -> String?
-
url(forKeyPath:)
Extension methodMechanica
Returns an
URL
value for a specified key path or nil if the key was not found.Declaration
Swift
public final func url(forKeyPath keyPath: Key<URL>) -> URL?
-
number(forKeyPath:)
Extension methodMechanica
Returns a
NSNumber
object for a specified key path or nil if the key was not found.Declaration
Swift
public final func number(forKeyPath keyPath: Key<NSNumber>) -> NSNumber?
-
date(forKeyPath:)
Extension methodMechanica
Returns an
Date
value value for a specified key path or nil if the key was not found.Declaration
Swift
public final func date(forKeyPath keyPath: Key<Date>) -> Date?
-
data(forKeyPath:)
Extension methodMechanica
Returns an
Data
value for a specified key path or nil if the key was not found.Declaration
Swift
public final func data(forKeyPath keyPath: Key<Data>) -> Data?
-
array(forKeyPath:)
Extension methodMechanica
Returns an
Array
value for a specified key path or nil if the key was not found.Declaration
Swift
public final func array<T: Any>(forKeyPath keyPath: Key<[T]>) -> [T]?
-
dictionary(forKeyPath:)
Extension methodMechanica
Returns an
Dictionary
[String:V] for a specified key path or nil if the key was not found.Declaration
Swift
public final func dictionary<V: Any>(forKeyPath keyPath: Key<[String: V]>) -> [String:V]?