<% if (isJekyll) { %>--- title: ns native add objective-c position: 4 ---<% } %>
Adds newly generated Objective-C files, which include an interface with the specified name, placing them in the appropriate directory.
Objective-C usage requires that the module.modulemap
is modified to include the header file, the command will set this entry.
Usage | Synopsis |
---|---|
Objective-C | $ ns native add objective-c <Objective-C interface name> |
<Objective-C interface name>
is the name of theinterface
to create, e.g.SomeInterface
<% if(isHtml) { %>
Command | Description |
---|---|
native add swift | Generates and adds a Swift file containing a class of the given name. |
native add objective-c | Generates and adds Objective-C files containing an interface of the given name. |
native add java | Generates and adds a Java file containing a class of the given name. |
native add kotlin | Generates and adds a Kotlin file containing a class of the given name. |
<% } %> |