RegisterAttribute.IsStubClass Property

Definition

Specifies whether the Objective-C class is a stub class. Objective-C stub classes are sometimes used when bridging Swift to Objective-C.

public bool IsStubClass { get; set; }
member this.IsStubClass : bool with get, set

Property Value

Remarks

Stub classes can be identified because they include SWIFT_RESILIENT_CLASS in the generated Objective-C header.

Example Objective-C type declaration:

SWIFT_RESILIENT_CLASS("_TtC16MySwiftFramework11MySwiftType")
@interface MySwiftType : SwiftTypeFromDifferentSwiftFramework
@end

Applies to