在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):MoathOthman/MOLH开源软件地址(OpenSource Url):https://github.com/MoathOthman/MOLH开源编程语言(OpenSource Language):Swift 98.3%开源软件介绍(OpenSource Introduction):MOLHLocalization helper for iOS apps mainly focusing on the LTR/RTL issue InstallAdd You can install it through Swift package manager as well. How To Use
StartWhen you start the app
Make sure this method is called only once and not on every reset or
To reset the language
Set defaultBefore .activate set
using without swizzling (prefered)you can choose to not use swizzling ImagesTo make sure an image is flipped when switching to RTL or to LTR, you can use FontsIts better to have the app fonts in one place in your app, e.g. a FontManager. and there you can decide which font to use based on the chosen language, this would be the eaiser way. Other Frameworks and bundlesSome controls such as ActionSheetDatePicker have locale property so you can set them appropriately e.g.
Common IssuesCollection view content are flipped in a non readable wayuse this line to solve it
you may check this post. uilabel/uitextfield are not reflectingmake sure to set the tag and make sure the .activate method is only called once and not on every reset Author
Support the libraryIf you enjoy MOLH and I want to say thank you, you can (buy me a coffee)[https://www.buymeacoffee.com/moathothman] |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论