https://github.com/simonberner/emojiart21
An iOS learning project π π¨πΌβπ (Swift, SwiftUI, UserDefaults, OSLog)
https://github.com/simonberner/emojiart21
Last synced: 11 months ago
JSON representation
An iOS learning project π π¨πΌβπ (Swift, SwiftUI, UserDefaults, OSLog)
- Host: GitHub
- URL: https://github.com/simonberner/emojiart21
- Owner: simonberner
- Created: 2021-06-09T19:55:51.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-12T19:44:22.000Z (over 4 years ago)
- Last Synced: 2024-12-29T01:58:48.593Z (over 1 year ago)
- Language: Swift
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EmojiArt 2021

This is a work in progress learning project for my personal endeavours of becoming an iOS Developer one day.
EmojiArt is an iOS app (for iPhone and iPad >= iOS14) to practice different Gestures with SwiftUI.
## Technologies
- Xcode 12.5.1
- Swift 5.4
- SwiftUI
## Persistance
All the data that is created by the user is stored locally using [UserDefaults](https://developer.apple.com/documentation/foundation/userdefaults) and is only deleted when the app is deleted. I am aware that [UserDefaults](https://www.hackingwithswift.com/example-code/system/how-to-save-user-settings-using-userdefaults)
should only be used for storing a small amount of data (eg user settings). Because too much data will slow down the lunch of the app.
## Logging in Swift
In this project I am also showing how to add proper Logging in Swift by using [Unified Logging](https://developer.apple.com/documentation/os/logging).
## Further Learning Resources
### SwiftUI
#### Opaque Type
- [Swift - Documentation](https://docs.swift.org/swift-book/LanguageGuide/OpaqueTypes.html)
- [The concepts behind SwiftUI: What is the keyword βsomeβ doing?](https://www.process-one.net/blog/the-concepts-behind-swiftui-what-is-the-keyword-some-doing/#:~:text=The%20some%20keyword%20was%20introduced,to%20define%20an%20Opaque%20Type.&text=So%2C%20in%20SwiftUI%20case%2C%20%E2%80%9C,be%20known%20by%20the%20caller.)
- [Why does SwiftUI use βsome Viewβ for its view type?](https://www.hackingwithswift.com/books/ios-swiftui/why-does-swiftui-use-some-view-for-its-view-type)
#### Buttons
- [The many faces of button in SwiftUI 3](https://swiftwithmajid.com/2021/06/30/the-many-faces-of-button-in-swiftui/)
### Logging in Swift
- [OSLog and Unified logging as recommended by Apple](https://www.avanderlee.com/workflow/oslog-unified-logging/#improved-apis-in-ios-14-and-up)
- [Logging in Swift](https://steipete.com/posts/logging-in-swift/)
- [Customised Textual Representation](https://developer.apple.com/documentation/swift/customstringconvertible)
- [Explore logging in Swift](https://developer.apple.com/videos/play/wwdc2020/10168/)
- [Migrating to Unified Logging: Console and Instruments](https://www.raywenderlich.com/605079-migrating-to-unified-logging-console-and-instruments)
### async/await (Swift 5.5)
- [Using URLSessionβs async/await-powered APIs](https://wwdcbysundell.com/2021/using-async-await-with-urlsession/)