grid-ios 1.0.7 Documentation

Class Grid​Properties

open class GridProperties  
  • Grid property loader

Initializers

init(_:​_:​_:​)

public init(_ resourceClass: AnyClass, _ bundle: String, _ name: String)  
  • Initialize
  • @param resourceClass resource class
  • @param bundle bundle name
  • @param name properties name

Properties

properties

public var properties: [String: Any] 
  • Properties

Methods

combine(_:​_:​)

public func combine(_ base: String, _ property: String) -> String  
  • Combine the base property with the property to create a single combined property
  • @param base base property
  • @param property property
  • @return string value

value(_:​)

public func value(_ property: String) -> String  
  • Get the string value of the property
  • @param property property
  • @return string value

value(_:​_:​)

public func value(_ property: String, _ required: Bool) -> String?  
  • Get the string value of the property with required option
  • @param property property
  • @param required true if required to exist
  • @return string value

value(_:​_:​)

public func value(_ base: String, _ property: String) -> String  
  • Get the string value of the property combined with the base
  • @param base base property
  • @param property property
  • @return string value

value(_:​_:​_:​)

public func value(_ base: String, _ property: String, _ required: Bool) -> String?  
  • Get the string value of the property combined with the base with required option
  • @param base base property
  • @param property property
  • @param required true if required to exist
  • @return string value

int​Value(_:​)

public func intValue(_ property: String) -> Int  
  • Get the int value of the property
  • @param property property
  • @return int value

int​Value(_:​_:​)

public func intValue(_ property: String, _ required: Bool) -> Int?  
  • Get the int value of the property with required option
  • @param property property
  • @param required true if required to exist
  • @return int value

int​Value(_:​_:​)

public func intValue(_ base: String, _ property: String) -> Int  
  • Get the int value of the property
  • @param base base property
  • @param property property
  • @return int value

int​Value(_:​_:​_:​)

public func intValue(_ base: String, _ property: String, _ required: Bool) -> Int?  
  • Get the int value of the property with required option
  • @param base base property
  • @param property property
  • @param required true if required to exist
  • @return int value

float​Value(_:​)

public func floatValue(_ property: String) -> Float  
  • Get the float value of the property
  • @param property property
  • @return float value

float​Value(_:​_:​)

public func floatValue(_ property: String, _ required: Bool) -> Float?  
  • Get the float value of the property with required option
  • @param property property
  • @param required true if required to exist
  • @return float value

float​Value(_:​_:​)

public func floatValue(_ base: String, _ property: String) -> Float  
  • Get the float value of the property
  • @param base base property
  • @param property property
  • @return float value

float​Value(_:​_:​_:​)

public func floatValue(_ base: String, _ property: String, _ required: Bool) -> Float?  
  • Get the float value of the property with required option
  • @param base base property
  • @param property property
  • @param required true if required to exist
  • @return float value

double​Value(_:​)

public func doubleValue(_ property: String) -> Double  
  • Get the double value of the property
  • @param property property
  • @return double value

double​Value(_:​_:​)

public func doubleValue(_ property: String, _ required: Bool) -> Double?  
  • Get the double value of the property with required option
  • @param property property
  • @param required true if required to exist
  • @return double value

double​Value(_:​_:​)

public func doubleValue(_ base: String, _ property: String) -> Double  
  • Get the double value of the property
  • @param base base property
  • @param property property
  • @return double value

double​Value(_:​_:​_:​)

public func doubleValue(_ base: String, _ property: String, _ required: Bool) -> Double?  
  • Get the double value of the property with required option
  • @param base base property
  • @param property property
  • @param required true if required to exist
  • @return double value

bool​Value(_:​)

public func boolValue(_ property: String) -> Bool  
  • Get the bool value of the property
  • @param property property
  • @return bool value

bool​Value(_:​_:​)

public func boolValue(_ property: String, _ required: Bool) -> Bool?  
  • Get the bool value of the property with required option
  • @param property property
  • @param required true if required to exist
  • @return bool value

bool​Value(_:​_:​)

public func boolValue(_ base: String, _ property: String) -> Bool  
  • Get the bool value of the property
  • @param base base property
  • @param property property
  • @return bool value

bool​Value(_:​_:​_:​)

public func boolValue(_ base: String, _ property: String, _ required: Bool) -> Bool?  
  • Get the bool value of the property with required option
  • @param base base property
  • @param property property
  • @param required true if required to exist
  • @return bool value

property​List​URL(_:​_:​_:​)

public static func propertyListURL(_ resourceClass: AnyClass, _ bundle: String, _ name: String) -> URL  

resource​URL(_:​_:​_:​_:​)

public static func resourceURL(_ resourceClass: AnyClass, _ bundle: String, _ name: String, _ ext: String) -> URL