Loading video...
Video Failed to Load
Some have asked why not develop it in SwiftUI? I actually love Swift in general. The reason I used NativeScript is because I plan to deploy this to Android foldables as well. Here it is on a Samsung Galaxy Z Fold3.
16,461 views • 1 day ago •via X (Twitter)
9 Comments

@NativeScript NativeScript makes sense here because the hinge drives the product, not just the layout. I’d isolate fold-angle → audio parameters from the view layer and replay a recorded hinge trace in tests. Then Android sensor quirks cannot silently change the mix.

@NativeScript Good call - right now, a per-platform hinge tracker normalizes UIHingeInteraction on iOS and TYPE_HINGE_ANGLE on Android into one reading, then a store maps angle > openness > reverb, tone and stereo width straight into the audio engine. Your trace-replay idea would work!

@NativeScript This is the way

@NativeScript Can @NativeScript support iPhone Duo with native iOS TabBar / ToolBar ?

@NativeScript Hey Julien, yes see this repo:

@NativeScript Oh nice, you are the author / creator of this plugin ? Why UIKit & not SwiftUI components ? Seems perfect for iPhone duo support, I hope it will be officially merged to NativeScript repo & docs 🤞

@NativeScript This may help explain

@NativeScript Cross-platform often means losing platform-specific feel. Does NativeScript match SwiftUI's gesture handling on foldables?

Yes, NativeScript runs its JavaScript on the main thread, so a spring stepped by CADisplayLink in TypeScript does what SwiftUI's animations do: each frame's value is computed in the app process and committed to the layer. Nothing goes through the render server. See this side-by-side showing the same interruptible interactions and also this gist for deeper explanation:
Related Videos
Sensitive content
Here is the animation I promised I tried my best in these 20 days I had to change some scenes because I couldn't recreate them in 3D I accept any comments you have to improve because I know this is not well done I made two versions, with and without socks
M K.
73,354 views • 2 years ago
