Image for post
Image for post

Recently, I released a project with a friend called Yachtify where you can drag, resize, and rotate a sticker of Lil Yachty’s hair on any image.

It took me a while to build the system, so I thought I’d share the what I made.

To start out all you need is a view controller with an image view and a sticker image view.

Image for post
Image for post

Next, you need to instantiate all of your image views, add them to the view, and set up all of the gesture recognizers.

Image for post
Image for post

For the purpose of the article, I just made the view controller really simple with a white background and percentage-based layout for the background image view. You’ll have to provide your own images for the background image and the sticker. …

Komran Ghahremani

Hey, I’m Komran Ghahremani, and I love Swift, Soccer, and Pizza. Site: http://komran.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store