قالب وردپرس درنا توس
Home / IOS Development / IOS – NSExtension – Part – Limit type only to video or just to images

IOS – NSExtension – Part – Limit type only to video or just to images



I have an extension in my app that lets users select photos or video of their "Photos" / "Photos" app to publish in my app.

I limit the number of pictures to 20 and the video limit to 1. By doing the following:
 enter picture description here

However, I want the users to choose one image or just a video.
This configuration is not possible.

I've read this thread: NSExtension Share Extension limit Pictures count

They explained that I can make custom validation rule, but I have no idea how to write it.

Is there another activation parameter or can anyone help with the rule?

Thanks in advance!


Source link