A client that can be used to search and view the data/images offered by NASA's public Mars Rovers Photos API. With the photo viewer users can select from the three rovers (Curiosity, Opportunity and Spirit), search by Earth date and filter the returned images by available camera options.
- View photos from Curiosity, Opportunity and Spirit
- Search by Earth date range available for each mission
- View all of the selected rover's photos for a given day or filter by a camera type (if used that day)
- Swift and SwiftUI
- MVVM
- Networking Service
- Combine
- A valid API Key from NASA
- A Mac running macOS Catalina or higher
- XCode 12
- Clone or download the project to your local machine
- Open the project in XCode
- Replace
DEMO_KEY
with your valid NASA API key inAPIClient.swift
final class APIClient {
// REQUEST AND REPLACE PLACEHOLDER API KEY WITH ISSUED KEY FROM "https://api.nasa.gov".
let apiKey = "DEMO_KEY"
- Run the Simulator or build on an iOS device
The following resources were used when building this project:
- GitHub Async Image && Asynchronous Image Loading from URL in SwiftUI
- My
APIClient.swift
was heavily influenced by theAPIService.swift
in this project GitHub MovieSwiftUI