Skip to content

Simple application for tips and tricks about iOS development talk

Notifications You must be signed in to change notification settings

opi-smccoole/HelloSpace

Repository files navigation

HelloSpace

A simple, ugly, very contrived sample application for my "Tips, Tricks (and little things you (might've) missed) About iOS Development" talk given at the MSP Mobile Talks user group meeting on 02/06/2024. The slides for the presentation are also included here.

The project is configured with the following tools and utilites for demonstration purposes:

It also provides examples of how to switch back to full Info.plist files and disable the automatic type generation of Image and Color assets in Xcode 15 to work properly with XcodeGen and SwiftGen.

Initial start:

  1. Make sure you have XcodeGen installed. brew install xcodegen
  2. Clone the repository.
  3. Change directory to the top of the project (where the project.yml is).
  4. Run xcodegen generate, build and launch.

Branch switching:

  1. Check out branch with second page and other file and group changes. git checkout smccoole/second-page
  2. Re-run xcodegen generate to update Xcode's project.pbxproj.
  3. Build and run as usual.

Other interesting things:

  • The files created by SwiftGen are under the HelloSpace/Generated folder. The smccoole/second-page branch includes the addtion of Fonts so be sure to check that out.
  • You can see examples of how the type safe definitions created by SwiftGen are used in the views.
  • If you make changes to the Fonts, Assets or Localizable.strings file, you must first run a build before trying to use the new or updated enumerations because SwiftGen is run in the pre-build and must update the generated files.

About

Simple application for tips and tricks about iOS development talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published