0.5.0
Breaking Changes:
- renamed
setAPIKey(_:)
tosetup(apiKey:logLevel:)
// access the singleton instance
let pexels = PexelsSwift.shared
// set your API key
pexels.setup(apiKey: "YOUR_API_KEY", logLevel: .debug)
New Features:
- added
PSLogger
for logging events to the console on runtime. - see Ratelimit statistics in logs.
- see fetched data as
JSON
in logs. - see errors in logs.
Internal Changes:
- refactored
fetch
methods