7 Commits

Author SHA1 Message Date
dfcbe6c319 style: formatting and whitespaces (#7840) 2019-09-19 15:40:31 +03:00
49b35714a3 fix: prevent plugin podfile platform version clash (#7626) 2019-08-02 10:23:03 +03:00
291e3b4b2e fix(ios): move material design dependency to podfile (#7592) 2019-07-28 22:22:29 +03:00
20c6d71c70 refactor: move material typings to core modules (#7480) 2019-07-09 13:35:28 +03:00
94629ce86c chore: move typing for material design in tns-platform-declarations (#7352) 2019-06-17 13:49:52 +03:00
0c2c1ccfde feat: re-design tab views (#7340) 2019-06-13 11:01:55 +03:00
05c2460fc4 feat: Pass NS app to the native app instead of presenting it over the root VC (#5967)
* feat: Pass NS app native controller to the native app instead of presenting it over the rootViewController

When NativeScript embedded app is created from the native one we check for whether the topmost UIViewController has NativeScriptEmbedder protocol (implemented in the iOS Runtime) method 'presentNativeScriptApp:'. If yes, we call it with the NS app viewcontroller as a parameter so the embedder has control over the NS app (where and how to present it etc.) For backwards compatibility we present the NS app on top of the topmost UIViewController as a fallback.

* style: Fix lint errors

* feat: Check for protocol instead of selector in embedding

I

* Check for rootController instead of topViewController to prevent crash if !rootController

* feat: Introduce NativeScriptEmbedder singleton

NativeScriptEmbedder is responsive for communication between the NS and the native iOS app. His delegate will implement methods which we can call from javascript such as "presentNativeScriptApp:".
2018-06-27 16:48:11 +03:00