You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I write fusuma.allowMultipleSelection = false then delegate getting called but when I have tried fusuma.allowMultipleSelection = true then delegate not getting called.
// MARK: FusumaDelegate Protocol
func fusumaImageSelected(_ image: UIImage, source: FusumaMode) {
switch source {
case .camera:
print("Image captured from Camera")
case .library:
print("Image selected from Camera Roll")
default:
print("Image selected")
}
imageView.image = image
}
func fusumaMultipleImageSelected(_ images: [UIImage], source: FusumaMode) {
print("Number of selection images: \(images.count)")
var count: Double = 0
for image in images {
DispatchQueue.main.asyncAfter(deadline: .now() + (3.0 * count)) {
self.imageView.image = image
print("w: \(image.size.width) - h: \(image.size.height)")
}
count += 1
}
}
I tried this in downloaded demo but it's not working.
The text was updated successfully, but these errors were encountered:
Note that this method has metaData property. There is an error in the protocol that it is only pulling up the method without the metaData. If you examine the FusumaViewController you'll see that the non metaData version is never called. Using the above method resolves it straight away.
I'm trying to allow the user to select multiple images and for that I have tried below code.
If I write
fusuma.allowMultipleSelection = false
then delegate getting called but when I have triedfusuma.allowMultipleSelection = true
then delegate not getting called.I tried this in downloaded demo but it's not working.
The text was updated successfully, but these errors were encountered: