Skip to content

swift_bridgeObjectRetain_n(____)

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

swift_bridgeObjectRetain_n(_:_:)

Increments the retain count of the passed in object by n. Nothing happens to the object if the retain count is zero.

@_silgen_name("swift_bridgeObjectRetain_n")
public func swift_bridgeObjectRetain_n(
    _ value: AnyObject,
    _ n: Int32
)

Parameters

  • value: A bridged object (Any objective-c object).
  • n: The amount of retains to add to the count.
Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally