A collection of iOS example code and applications.
- Custom Interface Builder View
- Custom Presentation Controller
- Transition images to full screen + zoomable image
- Stretchy table header view
- Custom Container View Controller
- Dynamic sized bottom sheet controller
- Dynamic sized dialog controller
- Flow coordinator pattern
- Expandable dynamic sized Table View Cell
- Custom Container View Controller (improved)
- Dynamic sized Table Header View and Table Footer View
- Multi Module App (using Coordinators)
- Keyboard Avoidance View Controller
- Extended Splash Screen on App startup
- Interactive Animations with UIViewPropertyAnimator
- Dynamic Animations with UIDynamicAnimator
- Flow View Pattern
- Handle consecutive taps on a tab in a TabView
- Rendering HTML in SwiftUI
- Action emitting ViewModels and Coordinator Views
- Driving SwiftUI navigation with a ViewModel hierarchy
- Shared authentication state
- gRPC Swift
- Background refresh and cleanup
- Bluetooth Low Energy (BLE)
- Live mock data by monitoring file changes in simulator
- Securely store objects and values in Keychain
- Multiple app flavours using build Configurations
- Simple network monitoring
- Dynamically alternate/change app icon
- General purpose HTTPClient with support for interceptors
- Concurrent and thread safe resource cache with Swift Concurrency
- Real-time with WebSockets and Swift Concurrency
- Representing arbitrary data as an opaque Codable type
- Error Responder Chain
- Vertical Slice Architecture
- Model and handle HTTP API Problems (RFC 7807)
Happy coding! 😄
Though feedback and contributions are greatly welcome, I can not promise to have the time and energy to address any issues or change requests that might emerge. The code is mostly meant to be used as is.
MIT License
Copyright (c) 2023 Thomas Asheim Smedmann
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.