Simple project to explore tuist for generating project Targets and managing dependencies
Make sure you have bundler installed.
./setup.sh
This will install Carthage and Tuist as well as generate project files.
Tuist uses SwiftGen to generate type safe code for accessing resources. When adding a resource you need to run tuist generate
.
Strings are located in the Module/Resources/Strings
folder. Each Module has its own .strings
file. For example when creating new UI module Foo
strings will be located in Foo/Resources/Strings/Foo.strings
.
Foo.strings
"foo_ScreenTitle" = "Foo";
You can access these strings in project using UIStrings
type:
label.text = UIStrings.Foo.fooScreenTitle
Similar to strings other assets like colors, fonts and images will be accessible through swift type.
Useful documentation links to further explore tuist capabilities.