protocol_conformsToProtocol(_:_:)
Returns a Boolean value that indicates whether one protocol conforms to another protocol.
Declaration
func protocol_conformsToProtocol(_ proto: Protocol?, _ other: Protocol?) -> BoolParameters
- proto:
A protocol.
- other:
A protocol.
Return Value
Discussion
One protocol can incorporate other protocols using the same syntax that classes use to adopt a protocol:
@protocol ProtocolName < protocol list >All the protocols listed between angle brackets are considered part of the ProtocolName protocol.
See Also
Working with Protocols
objc_getProtocol(_:)objc_copyProtocolList(_:)objc_allocateProtocol(_:)objc_registerProtocol(_:)protocol_addMethodDescription(_:_:_:_:_:)protocol_addProtocol(_:_:)protocol_addProperty(_:_:_:_:_:_:)protocol_getName(_:)protocol_isEqual(_:_:)protocol_copyMethodDescriptionList(_:_:_:_:)protocol_getMethodDescription(_:_:_:_:)protocol_copyPropertyList(_:_:)protocol_getProperty(_:_:_:_:)protocol_copyProtocolList(_:_:)