-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Q] How to force RTL UI for the app shell in iOS (action-bar, pages animations, back swipe direction)? #9465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This SO question is interesting as it mentions a successful import of storyboard of a custom bundle. This asserts the calls are working but the missing part is the correct combination: |
I also tried to get some inspiration from |
In discussion with @xlmnxp, he confirmed that the snippet mentioned in the issue did work back then with NativeScript 6, and with NativeScript 7 this seems to have broken. Any thoughts on what might have changed and break this? |
Regarding the layout direction thing, I think core could provide a layoutDirection property for start. |
Hello.
iOS has RTL mode for apps which makes quite serious difference when the app is supposed to be used in RTL or in LTR mode. The differences are:
These differences make huge UX issue for RTL apps written in NativeScript when trying to use as much of the native look and feel on iOS.
I made a search on this over the past days, and found some interesting points, such as https://stackoverflow.com/a/42430254, which has a solution that is reported in one way or another across other SO answers and blog posts on the internet. I was able to translate the code to NativeScript with help from @williamjuan027 (thanks!) to this:
However, it is transforming the app into a white screener, meaning it is working, but it is reloading the wrong storyboard/viewcontroller. Next I tried the following to get the current storyboard in order to try it:
However, I'm unable to figure out the correct combination for the storyboard name and the value for
NSBundle
(second parameter).What am I messing with this and how can I get NativeScript to reload current view-controller in order to get the changes of
semanticContentAttribute
get into effect?The text was updated successfully, but these errors were encountered: