Simple project to demonstrate how to use SwiftUI with MVVM to provide unit test friendly architeture.
- MVVM architecture pattern constructed with M, VM, V splited to separate static library to avoid unwanted crossing references
- Search images using Pixabay API
- Auto load more when reach last image result
- Image details
- Unit tests
- Describe project structure
- Interaction in image details
- iOS 14.0+
- Xcode 13.0
Add Pixabay+Config.swift file to PhotoClient-SwiftUI/Models/Network with content:
import Foundation
extension PixabayAPI {
internal struct Config {
static let apiKey = "YOUR-API-KEY"
}
}
We would love you for the contribution to PhotoClient-SwiftUI, check the LICENSE
file for more info.
Nate โ @DinhNha88577038
Distributed under the APACHE license. See LICENSE
for more information.