iOSConfSG 2021SwiftUI本地化示例

如果你最近在做 iOS 开发,尤其是想了解如何用 SwiftUI 和国际化(Localization)提升应用的全球适配性,这个iosconfsg-2021-sample代码库蛮不错的。它是为 iOSConfSG 2021 大会准备的示例,专注展示如何将 SwiftUI 和本地化结合得更好。你可以看到,如何用NSLocalizedString多语言内容,以及如何通过SwiftUI设计响应式 UI。

项目里有一些实用的国际化策略,像是如何管理Localizable.strings文件,以及在Info.plist中配置语言支持,尤其适合对本地化有需求的开发者。这个资源适合想要快速上手并理解如何在实际项目中应用这些技术的开发者。

如果你想提高对 SwiftUI 和本地化的理解,研究一下这个代码库是个不错的选择。它不光能让你掌握这些技术的核心用法,还能你提升应用的国际化水平。是对于全球化市场开发,挺有的。

zip
iosconfsg-2021-sample-main.zip 预估大小:73个文件
folder
iosconfsg-2021-sample-main 文件夹
folder
RunningWidget 文件夹
file
RunningWidget.swift 5KB
file
Info.plist 921B
folder
Assets.xcassets 文件夹
folder
WidgetBackground.colorset 文件夹
file
Contents.json 123B
folder
AppIcon.appiconset 文件夹
file
Contents.json 2KB
file
Contents.json 63B
folder
AccentColor.colorset 文件夹
file
Contents.json 123B
file
RunningWidget.intentdefinition 2KB
folder
RunningSGUITests 文件夹
file
Info.plist 727B
file
RunningSGUITests.swift 1KB
folder
RunningSGTests 文件夹
file
Info.plist 727B
file
RunningSGTests.swift 907B
folder
RunningSG.xcodeproj 文件夹
folder
xcshareddata 文件夹
folder
xcschemes 文件夹
file
RunningSG.xcscheme 4KB
file
RunningWidgetExtension.xcscheme 4KB
folder
project.xcworkspace 文件夹
folder
xcshareddata 文件夹
file
IDEWorkspaceChecks.plist 238B
file
contents.xcworkspacedata 135B
folder
xcuserdata 文件夹
folder
benoit.xcuserdatad 文件夹
file
UserInterfaceState.xcuserstate 72KB
folder
ben.xcuserdatad 文件夹
file
UserInterfaceState.xcuserstate 68KB
folder
xcuserdata 文件夹
folder
benoit.xcuserdatad 文件夹
folder
xcdebugger 文件夹
file
Breakpoints_v2.xcbkptlist 140B
folder
xcschemes 文件夹
file
xcschememanagement.plist 887B
folder
ben.xcuserdatad 文件夹
folder
xcschemes 文件夹
file
xcschememanagement.plist 887B
file
project.pbxproj 38KB
folder
RouteWidget 文件夹
file
Info.plist 919B
file
RouteWidget.intentdefinition 2KB
file
RouteWidget.swift 2KB
folder
Assets.xcassets 文件夹
folder
WidgetBackground.colorset 文件夹
file
Contents.json 123B
folder
AppIcon.appiconset 文件夹
file
Contents.json 2KB
file
Contents.json 63B
folder
AccentColor.colorset 文件夹
file
Contents.json 123B
file
RunningSG.xctestplan 1005B
file
README.md 303B
file
slides.pdf 3.68MB
folder
Widget 文件夹
file
Info.plist 914B
file
Widget.swift 2KB
file
Widget.intentdefinition 2KB
folder
Assets.xcassets 文件夹
folder
WidgetBackground.colorset 文件夹
file
Contents.json 123B
folder
AppIcon.appiconset 文件夹
file
Contents.json 2KB
file
Contents.json 63B
folder
AccentColor.colorset 文件夹
file
Contents.json 123B
folder
RunningSG 文件夹
folder
Preview Content 文件夹
folder
Preview Assets.xcassets 文件夹
file
Contents.json 63B
folder
Formatters 文件夹
file
DateFormatter.swift 1KB
file
LenghtFormatter.swift 2KB
file
Info.plist 2KB
folder
en.lproj 文件夹
file
Localizable.strings 552B
folder
Models 文件夹
file
SectionRoute.swift 503B
file
AppRoute.swift 2KB
file
Route.swift 961B
folder
Extensions 文件夹
file
PreviewProvider+Extensions.swift 1KB
file
Image+Extensions.swift 381B
folder
fr.lproj 文件夹
file
Localizable.strings 572B
folder
New Group 文件夹
folder
DetailView 文件夹
file
DetailView.swift 5KB
file
RunningSGApp.swift 258B
folder
Assets.xcassets 文件夹
folder
geylang-river.imageset 文件夹
file
IMG_9805-1.jpg 2.57MB
file
Contents.json 160B
folder
raffles-place.imageset 文件夹
file
IMG_9783-1.jpg 2.17MB
file
Contents.json 160B
folder
marina-barrage.imageset 文件夹
file
IMG_9888.jpg 2.3MB
file
Contents.json 158B
folder
angmohkio-park.imageset 文件夹
file
IMG_0010-1.jpg 2.07MB
file
Contents.json 160B
folder
marina-east.imageset 文件夹
file
IMG_9849-1.jpg 1.67MB
file
Contents.json 160B
folder
kallang.imageset 文件夹
file
IMG_9858.jpg 1.67MB
file
Contents.json 158B
folder
AppIcon.appiconset 文件夹
file
180x180-1.png 10KB
file
120x120-1.png 6KB
file
iTunes Artwork@2x.png 40KB
file
Contents.json 965B
file
Contents.json 63B
folder
AccentColor.colorset 文件夹
file
Contents.json 123B
folder
Views 文件夹
file
Sampleview.swift 822B
folder
ListingView 文件夹
file
SectionView.swift 1KB
file
CardView.swift 2KB
file
ListingView.swift 1KB
...
zip 文件大小:16.14MB