Share a custom photo or video to Instagram Stories via its rich URL scheme

Image for post
Image for post

Instagram implements a rich URL scheme for its Stories. The best thing about URL schemes is that we don’t need to include any frameworks. If the user has the Instagram app installed, it will do all the dirty work. Let’s dive into more details!

Image for post
Image for post
Photo on the third screen from Unsplash.

As you can see in the image above, there are three main layers:

  • The background layer, which can be made of a photo, a video, a solid color, or a gradient.
  • The sticker layer (optional), which contains an image and can be edited by the user.
  • The attribution link (in beta for some users only).

Time to Code

Let’s review the code. …


Frameworks management simplified

Image for post
Image for post

Perhaps you’re wondering what Carthage is. Carthage is a decentralized dependency manager for cocoa. What does that mean? It means that it simplifies our lives by taking care of all the problems that depend on frameworks management.

At the end of this guide, you will have a basic framework supported by Carthage.

Action!

To proceed, you need some packages on your computer. I recommend installing Homebrew, a packet manager that simplifies your life with installations.

If you do not have Carthage already installed already, run this command:

brew install carthage

Once you have done that, you’re ready to start!

Create the Framework

First, we have to create our framework. In this case, we’re going to make a simple method to change the view’s background color. Create a new Xcode project, iOS, Cocoa Touch…


Image for post
Image for post

Have you ever heard the word “backend”? If this is your first time hearing this strange word and you are wondering if it is an animal or a particular kind of plant or even a really tasty food, or if you know what that is but you feel like you don’t really know much about it, follow me during this guide, and in the end you will be quite an expert about it.

At the end of this guide, you will have a basic backend for your application. To reach this goal, we are going to use Kitura, a server-side web framework that allows us to build a server using Swift, for API’s endpoints, Postgres, an open source relational database, for storing data and Docker to manage the resources. …

About

Gianpiero Spinelli

Tech enthusiast, frontend and backend developer.

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