The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
SwiftUI support 🥳
1 year ago
After a long time, I got up the strength to make a release.
- This version adds the ability to use JustPhotoPicker in your SwiftUI code.
The `JustPhotoPickerView` structure, which can take a configuration as a parameter, is used for this purpose.
- Also in this release added support for some Slavic languages (Czech, Polish, Ukrainian).
They have been waiting a long time for its release, as I had forgotten that I committed them to the branch, to be honest 😬
Add localization support 🌎
2 years ago
This version adds localization support to JustPhotoPicker. The package is already translated into German, French and Russian.
Localization files are located in `Source/JustPhotoPicker/Resources/` directory. I will gradually add new localizations, but if you want to help with this, you are welcome to [contribute](https://github.com/igooor-bb/JustPhotoPicker#contribution).
Add closure for retrieving result of images selection
2 years ago
This version adds a public parameter `didFinishPicking` of the `PhotoPicker` class, which is a closure through which you can get the result of selecting images from the gallery:
```swift
let photoPicker = JustPhotoPicker(configuration: config)
photoPicker.didFinishPicking = { images, canceled in
if canceled {
print("Did not select any images")
return
}
print("Selected \(images.count) images")
}
present(photoPicker, animated: true)
```
The `JustPhotoPickerDelegate` protocol used for the same purpose still continues to exist.