All Projects → SwapnanilDhol → IGStoryKit

SwapnanilDhol / IGStoryKit

Licence: MIT license
A simple and super fast framework to post to Instagram stories from your iOS and iPadOS apps

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to IGStoryKit

Instagram-Scraper-2021
Scrape Instagram content and stories anonymously, using a new technique based on the har file (No Token + No public API).
Stars: ✭ 57 (+5.56%)
Mutual labels:  instagram, instagram-stories
Instaloader
Download pictures (or videos) along with their captions and other metadata from Instagram.
Stars: ✭ 3,655 (+6668.52%)
Mutual labels:  instagram, instagram-stories
IGStoryButtonKit
IGStoryButtonKit provides an easy-to-use button with rich animation and multiple way inspired by instagram story/stories.
Stars: ✭ 31 (-42.59%)
Mutual labels:  instagram, instagram-stories
Instagram Php Scraper
Get account information, photos, videos, stories and comments.
Stars: ✭ 2,490 (+4511.11%)
Mutual labels:  instagram, instagram-sdk
vue-insta-stories
Vue 2 & 3 library for Instagram like stories.
Stars: ✭ 45 (-16.67%)
Mutual labels:  instagram-stories
Rhplaceholder
Show pleasant loading view for your users 😍
Stars: ✭ 238 (+340.74%)
Mutual labels:  instagram
Pow assent
Multi-provider authentication for your Pow enabled app
Stars: ✭ 236 (+337.04%)
Mutual labels:  instagram
Instagram Live Streamer
[Unofficial] Broadcast to Instagram Live anything from your PC/Laptop
Stars: ✭ 232 (+329.63%)
Mutual labels:  instagram
FireMonkeyInstagramApp
Sample Instagram UI design project made with Embarcadero Delphi 10.1 Berlin.
Stars: ✭ 23 (-57.41%)
Mutual labels:  instagram
instapi
📷 Python Instagram API
Stars: ✭ 33 (-38.89%)
Mutual labels:  instagram
Mrphish
All In One Social Accounts Phishing With Otp Bypass In Termux.
Stars: ✭ 243 (+350%)
Mutual labels:  instagram
Swiftui Animation
SwiftUI Animation
Stars: ✭ 233 (+331.48%)
Mutual labels:  instagram
instagram
Php instagram library. With this library, you can use many of the same features in the mobile application.
Stars: ✭ 45 (-16.67%)
Mutual labels:  instagram-stories
Pageindicator
An Instagram like page indicator compatible with RecyclerView and ViewPager.
Stars: ✭ 236 (+337.04%)
Mutual labels:  instagram
notion-instagram
Schedule & Publish posts to Instagram from Notion
Stars: ✭ 115 (+112.96%)
Mutual labels:  instagram
Moa
A Mastodon, Twitter, and Instagram Cross-poster
Stars: ✭ 232 (+329.63%)
Mutual labels:  instagram
instastories-backup
Backup your friends' Instagram Stories forever and get to keep them even after 24 hours.
Stars: ✭ 82 (+51.85%)
Mutual labels:  instagram-stories
Instagram Proxy Api
CORS compliant API to access Instagram's public data
Stars: ✭ 245 (+353.7%)
Mutual labels:  instagram
Instagram Nodejs
Simple library for auth, get followers, search by hashtags and locations, like posts, follow, get user feed of instagram with nodejs
Stars: ✭ 244 (+351.85%)
Mutual labels:  instagram
AutoFetcher-IG-Stories-to-GDrive
A Google Apps Script for deploying a web application that automatically fetches the latest available IG Stories of a target Instagram user to your Google Drive.
Stars: ✭ 54 (+0%)
Mutual labels:  instagram-stories

Overview

IGStoryKit lets you easily share content stickers with different background types to Instagram stories from your iOS and iPadOS apps.

Installation

IGStoryKit is available via Swift Package Manager. To add IGStoryKit simply add this repo’s URL to your project’s package file.

https://github.com/SwapnanilDhol/IGStoryKit

Usage

You can find a detailed tutorial here. However, a simple setup is mentioned below.

Please ensure that you’ve created a LSApplicationQueriesSchemes entry in your project’s Info.plist file and added an instagram-stories entry. Without this your project will not be able to copy data into Instagram stories and this framework will thrown an assertion failure during debug runtime.

Import IGStoryKit

import IGStoryKit

Create an IGData object

let igData = IGData(backgroundType: .gradient,
                            colorTop: .systemOrange,
                            colorBottom: .systemRed,
                            backgroundImage: nil,
                            contentSticker: nil)

Next, create an instance of IGDispatcher and initialize it with the igData created above.

Create an instance of IGDispatcher

let igDispatcher = IGDispatcher(igData: igData)

Start the posting flow by called start() on the dispatcher

igDispatcher.start()

Recommend values

Instagram suggests particular sizes for images shared to Instagram stories on their developer site.

Asset Preferred Size For BackgroundType
Content Sticker 640x480 .none, .color, .gradient, .image
Background Image 720x1080 (9:16 or 9:18) .image

Understanding how IGKit works

IGData

IGData is a Swift object that defines the data being shared to Instagram stories. It contains the following parameters:

  • backgroundType: Defines the BackgroundType of the story. BackgroundType is discussed in detail below.

  • colorTop: Defines the top color of the story background. In case of .color background type, the colorTop color is used as a solid color background.

  • colorBottom: Defines the bottom color of the story background. Used only in the case of .gradient background type. In conjunction with the colorTop property, Instagram renders a linear gradient as the story background.

  • backgroundImage: Defines the background image of the story background. Used only in the case of .image background type.

  • contentSticker: Defines a content sticker image property. This sticker can be customized by the user in the Instagram app.

Background Type

BackgroundType is an enum that describes the background type of the Instagram Story. It can be of 4 pre defined types:

  • none: No background. This mode requires that the user shares a sticker image content.

  • color: A solid color background. User provides a UIColor value and the IGDispatcher class creates a Instagram story with a solid background color. For this case the user may or may not provide a sticker content image. In case the user doesn’t provide a sticker content image IGDispatcher will only create a story with a solid color background.

  • gradient: A linear gradient background. User provides two UIColor into colorTop and colorBottom while configuring an IGData. The IGDispatcher class then creates an Instagram story with a linear gradient background. For this case, the user may or may not provide a sticker content image. In case the user doesn’t provide a sticker content image IGDispatcher will only create a story with a linear gradient background.

  • image: An image background. User provides an UIImage into the backgroundImage parameter while creating an object of type IGData. The IGDispatcher class then creates an Instagram story with an image background. For this case, the user may or may not provide a sticker content image. In case the user doesn’t provide a sticker content image IGDispatcher will only create a story with an image background.

Like the framework?

If you like IGStoryKit please consider buying me a coffee 🥰

Contributions

Contributions are always welcome. Please follow the following convention if you’re contributing:

  • NameOfFile: Changes Made
  • One commit per feature
  • For issue fixes: #IssueNumber NameOfFile: ChangesMade

License

This project is licensed under the MIT License - see the LICENSE file for details

Apps using IGStoryKit

If you’re using IGStoryKit in your app please open a PR to edit this Readme. I’ll be happy to include you in this list :D

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].