You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extensions are a swift language feature that allows you to add methods and other nested declarations to a swift nestable declaration (struct or class). For exporting to Objective C, only classes are allowed to be extended (denoted by @interface <class-name> (SWIFT_EXTENSION(<module-name>)) in Objective C)
extensionA{publicfunc newFunc(p:String){
// function body
}}
They work similar to the relationship between Dart classes
Swift functionality present in an extension usually have a swiftExtension field in the generated symbol graph
The text was updated successfully, but these errors were encountered:
Extensions are a swift language feature that allows you to add methods and other nested declarations to a swift nestable declaration (struct or class). For exporting to Objective C, only classes are allowed to be extended (denoted by
@interface <class-name> (SWIFT_EXTENSION(<module-name>))
in Objective C)They work similar to the relationship between Dart classes
Swift functionality present in an extension usually have a
swiftExtension
field in the generated symbol graphThe text was updated successfully, but these errors were encountered: