Displays The New York Times best seller books with SwiftUI and Combine.
In order to not expose our sensitive data, I've created a file called Config.swift that holds my API key. This config file is added to the .gitignore file. If you accidently commit and push sensitive data to your repo, consider it compromised and generate a new API key.
Visit the NYTimes Developer portal, and follow the directions to generate an API key for the Books API.
import Foundation
enum Config: String {
case apiKey = "Paste your API Key here"
}