Added a new dark Rack that will be used when user is in dark mode.
Add Support for Dark Mode by moving from the Boolean value we
previously used to an enum specifying the 3 available modes to the
user (light, dark, system).
Added a convenience function that checks the trait collection for
the current mode and falls back to false if not supported on OS.
However we should not run into users using "system" on versions below
iOS 13 because the option (segment) will be removed programatically
for these users.
To prepare the PR, I had to:
Added a new dark Rack that will be used when user is in dark mode.
Add Support for Dark Mode by moving from the Boolean value we previously used to an enum specifying the 3 available modes to the user (light, dark, system). Added a convenience function that checks the trait collection for the current mode and falls back to false if not supported on OS. However we should not run into users using "system" on versions below iOS 13 because the option (segment) will be removed programatically for these users.
See video in #synthone Slack channel.