iOS Image Viewer like Photo app - ios

I am developing an app that has an internal gallery with some images.
What I want to achieve is exactly a result that behaves and looks like the Apple Photo app image viewer.
With a collection view I implemented the gallery images with thumbnails and now I would like to show the image on fullscreen on press.
The image viewer should have exactly the Apple's Photo behavior:
Full screen on single tap,
Delete, Share button etc...
Pinch to zoom, double tap zoom...
My question is. Is that really possible that such a common feature is not already given by iOS? Is there maybe a view controller already build in that we can use but I am not aware of?
I know there are some libraries around that make such thing, but I'm wondering if there's already something given.

Related

Prevent manual screenshot in IOS Objective-C

On iOS, my requirement is disallow user to take manual screenshot from my application, either disallow or blur the captured screenshot. How?
The only solution is to simulate the iOS controls you have in your View using DRM'ed videos.
For each widget you need to create a video subclass that renders the widget, and apply DRM to the video.
You can try to do it yourself, or use a commercial solution such as the following:
https://screenshieldkit.com
It is possible but I don't recommend it because of the room for error. It was easier to do in the past, in iOS13 you will have to do it like this:
You will have to ask for the user's permission to read and edit their photo library, then you have a listener which is checking the number of photos in their library while they are using your app, if that number changes, they have just taken a screenshot (unless you allow other things in your app like tap and hold to save image, etc). When this happens, read said photo and apply a blur, then delete the photo from their library and save the blurred photos.
Warning: There are times where a user may get a photo while using your app that is not a screenshot (e.g. they received an airdrop) and you will now be tampering with their photos, which is very bad. To prevent this you may need to use key value pixel encoding on your screen at all times, for example the first 3 pixels of the screen are 3 very specific RGB values, that way if a new photo is detected and the first 3 pixels are those exact RGB values you know it's a screenshot of your app and not just another photo that was somehow saved while the user was using the app.
There isn't any regular solution to your problem!
You can do some tricks such as if you force the user to have their finger on the screen for the image to show then I don't think they can create screenshots. Because as soon as you press the home+lock keys to actually take the screenshot, the screen seems to behave as if there are no fingers touching it.
BUT what if the user takes a screenshot by AssistiveTouch?!
OR what do you want to do if user records screen and taking screenshot from the video?
I think it's better to change your strategy for example notify the owner of picture for taking screen shot by another one (like SnappChat)!

Create a gallery view like Photos App of iPhone

Does iOS provides default view like Photos App.
Scrolling through images, which also maintain bottom thumbnail images.
Even WhatsApp is using this same view.
I would like to know if iOS provides similar kind of view.
Here I have attached reference screenshot.

Adding "allowsEditing" to custom UIImagePickerController

I integrated a so called OLFacebookImagePicker into my application.
From Here.
For my app I need images to be cropped to squares like the allowsEditing
of the native UIImagePickerController does.
My Question is:
Is it possible to integrate this feature in a custom PickerController?
I've got the idea to MAYBE get the images from the OLFacebookImagePicker
into the app and manipulate them afterwards. But I want to give the users the chance to customize their pictures by themselves.

iPad Photo Gallery Framework

I am looking for some framework that allows me to create a Photo Gallery that allows the user to swipe through pictures, and then select one and it takes them to a specific view based on that image. I seen this idea in another App, and didnt know if this was an open source framework, or if there is anything similar.
I wrote a library that should be able to handle this:
https://github.com/nicklockwood/iCarousel
Check out the "custom" or "time machine" carousels in the example app for something similar to what you've shown.
Here's a screenshot. Don't worry that it's not exactly the same as your picture; the angle, panel size, etc. can all be configured.

Is there a photo display control available for ipad?

Like a photo gallery control, where you can load and display pictures in thumbnails, and then tap on them, and see full image, zoom in/out?
The three20 library has a photo viewer that mimics the iPhone's photo viewer:
http://github.com/facebook/three20
Specifically the TTPhotoViewController class.
Since nobody replied, gonna give my answer, which is no. There is no such control available as of today unfortunately. Also the photos app slider is nice, would like to see some more controls like that.

Resources