Skip to content

0.9.1

Compare
Choose a tag to compare
@lukepistrol lukepistrol released this 23 May 09:20
· 45 commits to main since this release
d487772

0.9.1

  • added rate limit tracking. See Rate Limits for more information.

0.9.0

Breaking Changes:

  • added HTTPURLResponse to results tuple:
let result = await pexels.getCuratedPhotos()

switch result {
case .failure(let error):
    print(error.description)
case .success(let (data, paging, response)):
    // access photos
    // data -> [PSPhoto]
    // paging -> PSPagingInfo
    // response -> HTTPURLResponse
}