-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate UserDefaults system #16
Comments
Before adding the prefs window, need to figure out a pattern for saving various preferences. |
Looks like I need to learn about |
Swift Package Manager Tutorial: https://www.raywenderlich.com/750-an-introduction-to-the-swift-package-manager Carthage: https://github.com/Carthage/Carthage#differences-between-carthage-and-cocoapods Differences between Carthage and CocoaPods: https://github.com/Carthage/Carthage#differences-between-carthage-and-cocoapods |
Out of those I'd suggest you start with Carthage. That said, in an app this small I'm not sure you would really need anything additional for setting & accessing user preferences? |
Yeah I've got SwiftyUserDefaults integrated using Carthage in this PR #25 I'm planning to create a Ruler class (or struct?) which will be Codable so we can save each ruler in settings. That way we can persist the size, position, and units of each ruler separately. This is mostly out of curiosity rather than a pressing end user need, but I'm toying with the idea of creating a 'RulerSet' class so folks could make multiple sets of Rulers and persist them as an array in settings. But going to defer on that for now and focus on the other stuff in the 2.0 milestone. |
Closed in #25 |
The text was updated successfully, but these errors were encountered: