Skip to content

0.5.0

Compare
Choose a tag to compare
@lukepistrol lukepistrol released this 15 May 22:22
· 119 commits to main since this release

Breaking Changes:

  • renamed setAPIKey(_:) to setup(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