Contents

hasReadableProperty(forKey:)

Returns a Boolean value indicating whether the described class has a readable property identified by the specified key.

Declaration

func hasReadableProperty(forKey key: String) -> Bool

Parameters

  • key:

    The identifying key for a property of the receiver.

Return Value

true if the described class has a readable property identified by the specified key; otherwise, false.

Discussion

To determine if a property is read-only, invoke hasWritableProperty(forKey:)/

See Also

Getting attribute and relationship information