Reflectable

public protocol Reflectable: class

Used to query the property list of the conforming class. PrediKit uses this protocol to determine if the property you are specifying in the creation of a predicate actually exists in the conforming class. If it doesn’t, PrediKit will print a warning to the console.

All NSObjects conform to this protocol through a public extension declared in PrediKit.

  • Must implement this protocol in order to take advantage of PrediKit’s property warning console print behavior.

    Returns

    An Array of Selectors. These can just be the strings that equal the names of the properties in your class.

    Declaration

    Swift

    static func properties() -> [Selector]

    Return Value

    An Array of Selectors. These can just be the strings that equal the names of the properties in your class.