Skip to content

0.4.1

Compare
Choose a tag to compare
@lukepistrol lukepistrol released this 14 May 10:48
· 120 commits to main since this release

0.4.1

  • updated docs

0.4.0

Breaking Changes:

  • renamed PSCollectionCategory to PSCollection
  • renamed getCategories() to getCollections()
  • results now get returned in a Result<T, Error> format:
let result = await pexels.getCuratedPhotos()

switch result {
case .failure(let error):
    // handle error
case .success(let photos):
    // access photos
}

Internal changes:

  • using async/await syntax for URLSession instead of Combine
  • renamed enum PSURL to API