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 method

    Mechanica

    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 method

    Mechanica

    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 method

    Mechanica

    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 method

    Mechanica

    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 method

    Mechanica

    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 method

    Mechanica

    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 method

    Mechanica

    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 method

    Mechanica

    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]?