Copy link to clipboard
Copied
Dear Adobe AIR SDK Team,
please, provide step by step tutorial for create ANE for iOS using Swift.
Copy link to clipboard
Copied
There are none I know of from Adobe (apart from the details in the release notes)
These may help you though.
Using Swift in AIR Native Extensions - Hello World Example Part 1 - YouTube
Using Swift in AIR Native Extensions - Hello World Example Part 2 - YouTube
Using Swift in AIR Native Extensions - Hello World Example Part 3 - YouTube
Copy link to clipboard
Copied
Thank you.
Yes, i saw this tutorial.
Unfortunately, due to the absence of voice comments, it is very difficult to understand the meaning and purpose of each action.
Copy link to clipboard
Copied
Any updates?
Copy link to clipboard
Copied
I will gladly answer any questions you have.
I'm not re-recording the videos with voice though. I already spent alot of time and effort putting those together, along with the docs and readme and multiple sample projects.
Copy link to clipboard
Copied
I must say, the project by @el111 absolutely rocks!! Kudos.
All the heavy lifting that the "step by step" from Sourabh Gupta completely misses - is taken care of in el111's project. Check out the Part 1 video he posted above: Using Swift in AIR Native Extensions - Hello World Example Part 1 - YouTube
Once you get to the end of the video - you basically just need to start writing your swift functions!
Copy link to clipboard
Copied
Glad you found the project + videos useful.
I think Sourabh Gupta's blog post is useful and the approach forms the basis of how this is done.
Some people may wish to keep their "FRE" code in ObjC.
And as a comparison it's actually deeper that the React Native page on using Swift
That being said, what my project aimed to do was create a wrapper framework to:
The last one is probably the most important for me.
It has allowed me to quickly port the ARKit API to AS3 relatively quickly
Here for example is an extension which allows easy conversion of an AS3 Vector3D into the equivalent SCNVector 3 class and vice versa.
//single liner
let vec = SCNVector3(argv[0])
import Foundation
import ARKit
public extension SCNVector3 {
init?(_ freObject: FREObject?) {
guard let rv = freObject else {
return nil
}
self.init(Float(rv["x"]) ?? 0,
Float(rv["y"]) ?? 0,
Float(rv["z"]) ?? 0)
}
func toFREObject() -> FREObject? {
do {
let ret = try FREObject(className: "flash.geom.Vector3D",
args: Double(self.x), Double(self.y), Double(self.z))
return ret
} catch {
}
return nil
}
}
Copy link to clipboard
Copied
Ack re Sourabh Gupta - it was harsh a comment - as I'm becoming more familiar with building native extensions for iOS, Sourabh's post is looking more like a step-by-step, my bad. Still grateful for your project though and excited about the potential for porting more of the swift API!
Copy link to clipboard
Copied
Hi Oleg,
You can go through my devnet article "Swift based ANE for iOS/tvOS." for step by step guidance on how to develop and use Swift based ANE in AIR application.
-Sourabh Gupta | Adobe AIR Team
Copy link to clipboard
Copied
Thank you, great work!
It would be better in future to make a crash course video with an example to show native toast with string "Hello world".
Copy link to clipboard
Copied
Yes ,this project by @elll is great. I found it last year。