KeyPath

public extension KeyPath where Root: NSObject

Public Properties

  • Returns the String equivalent of the receiver.

    let keyPath = \Entity.relationship.property
    let str = keyPath.toString
    
    // do something with str which is "relationship.property"
    

    Declaration

    Swift

    var toString: String { get }