We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Below code is working fine for iPhone and iPad. How can I achieve same thing in macos?
let imagePicker = OpalImagePickerController() self.presentOpalImagePickerController(imagePicker, animated: true, select: { (assets) in self.indicatorView.startAnimating() self.dismiss(animated: true) { for asset in assets { let model = PhotoModel( creationDate: asset.creationDate ?? Date(), modificationDate: asset.modificationDate ?? Date(), mediaType: asset.getMediaType(), isFavorite: asset.isFavorite, image: asset.getAssetThumbnail().pngData() ?? Data() ) DatabaseHelper.shareInstance.savePhoto(model: model) } self.photoArray = DatabaseHelper.shareInstance.getAllPhotos() } }, cancel: { //Cancel print(#function) })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Below code is working fine for iPhone and iPad. How can I achieve same thing in macos?
The text was updated successfully, but these errors were encountered: