0.4.1
0.4.1
- updated docs
0.4.0
Breaking Changes:
- renamed
PSCollectionCategory
toPSCollection
- renamed
getCategories()
togetCollections()
- 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 forURLSession
instead ofCombine
- renamed enum
PSURL
toAPI