Skip to content

swift_dynamicCastObjCProtocolConditional(______)

0x41c edited this page Feb 28, 2022 · 1 revision

swift_dynamicCastObjCProtocolConditional(_:_:_:)

Performs a check to determine if the object conforms the protocol(s).

@_silgen_name("swift_dynamicCastObjCProtocolConditional")
public func swift_dynamicCastObjCProtocolConditional(
    _ object: UnsafeRawPointer,
    _ protocolCount: Int,
    _ protocols: UnsafeRawBufferPointer
) -> UnsafeRawPointer?

Parameters

  • object: The objective-c object to perform the cast on.
  • protocolCount: The amount of protocols to check conformance of.
  • protocols: An array of protocols to check conformance of.

Returns

The object when successful, or nil otherwise.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally