

This will create a Podfile in the root directory. cd to the root directory of your application and run pod init. When you are done with the initial setup, close Xcode and launch terminal. We are going to call the app streamlove (yes, it’s lame we know). Launch Xcode and in there create a new project. Creating the floating hearts application in Xcode Hopefully, you have all the requirements checked off.
#Falling hearts codes install
Cocoapods installed on your machine – install it using Ruby by running: gem install cocoapods.NodeJS and NPM installed on your machine.A Pusher application – you can create a free Pusher account here.Knowledge of Swift and Xcode storyboards.To follow along in this tutorial you will need the following things: Here is a screen recording of what we will be achieving in this tutorial using Swift and Pusher.įrom the recording, you can see that when the like button is tapped, the likes float to the top and they are also replicated on another device viewing the video being played. This article will show you how you can implement the real-time floating hearts feature on your iOS application using Swift and Pusher. If you are a user of applications like Periscope, Instagram and Facebook, then you may have noticed they have a feature in their live streams where anytime someone likes the live content, the ‘likes’ float on your screen.
