This repository contains a solution for the problem proposed.
This project was written using no external dependencies, but there are UI extensions based on the PureLayout framework API to facilitate writing view-related code.
To be able to run this project you'll need XcodeGen, Xcode (12.5 or higher) and a iOS device running iOS 13.0 or higher. Alternatively you can use a simulator provided with Xcode.
If all requirements were met, running the project should be fairly easy. Make sure to follow the steps below:
- Inside the project directory, run
make xcodegen
to generate the project file. - Open the
ToggleChallenge.xcodeproj
with Xcode - Once the project opens, select the target
ToggleChallenge
- Now select a device (it needs to be plugged in your machine) or a simulator
-
Can't see the FaceID/TouchID login option on the simulator? If you're using the simulator, you need to enroll to FaceID/TouchID inside the
Features
menu. -
Can get past the FaceID/TouchID check? Once you have FaceID/TouchID, the app will validate you biometry credentials. To simulate a successful check, use the following shortcut: Option + Command + M
To see a diagraph
representation of the modules in the project, run make export_tree
and copy the graph output and paste it on GraphvizOnline or another preferred diagraph interpreter.