#SWIFT SHARE EXTENSION TUTORIAL FREE#
You can choose from 1000s of free animation on LottieFiles but for the purpose of this tutorial we'll be doing together, we’ll be using this animation to start with.Īs sometimes not all Lottie features are supported by iOS, it's super important to test that your chosen Lottie works on iOS. Great, now for the fun part! Let’s get animated!!! Navigate to ViewController.swift, add the following line to the top of the file.
#SWIFT SHARE EXTENSION TUTORIAL MAC#
Save, and open the terminal in your Mac and navigate to the project root folder, then type and run: pod installĪs soon as it’s finished, double tap to open the xcworkspace file: Uncomment the next line to define a global platform for your project Change its content with the following code: # 1. Open it using any text editor (Xcode also works). Notice that a file called Podfile will be created in the root folder of your project. To start, close the project, open terminal and navigate to your project’s root folder. There are a few ways to add Lottie to our project, in this tutorial, we’ll be using the most popular one, CocoaPods. Tap Next and Create.Īwesome, we have the project ready, now let’s add the Lottie library.
![swift share extension tutorial swift share extension tutorial](https://i.stack.imgur.com/Kf6g2.png)
It's time to sprinkle on those little bits that will give your app the edge and make your users cry with joy when they see it because it’s just so darn beautiful.
![swift share extension tutorial swift share extension tutorial](https://blog.logrocket.com/wp-content/uploads/2021/06/swift-extensions-overview-examples.png)
If you're reading this, it means you're ready to add that bit of extra magic to your iOS apps.