InstaGallery

master

📷 Easy way to access your Instagram gallery and medias in Swift
manucodin/InstaGallery

InstaGallery

Platform Swift Package Manager Swift Platform

InstaGallery is an easy way to access your Instagram account and get your gallery and get his media in a few steps.

How to use

  1. You need a Facebook Developer account, go to Facebook Developer and create a new account if you haven't yet
  2. Create a new Facebook application following the steps that appear on the official web site Create Facebook Application for Instagram
  3. Open your Info.plist
  4. Set a new key with name InstagramClientId and set your Instagram App Id in this key
  5. Set a new key with name InstagramRedirectURI and set with your Instagram App Redirect URI
  6. Set one more key with name InstagramClientSecret with the Instagram App Secret.
  7. Init GalleryController with method InstaGallery.gallery. If you need retrieve the media selected, do you need set GalleryDelegate delegate with the optinal parameters delegate. For example
let galleryController = InstaGallery.gallery(withDelegate: self)
let navigationController = UINavigationController(rootViewController: galleryController)
present(navigationController, animated: true, completion: nil)
  1. Enjoy! 🎉

CocoaPod

InstaGallery is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'InstaGallery'

Then, run pod install

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/MRodSebastian/InstaGallery.git", .upToNextMajor(from: "0.4.0"))
]

Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create pull request

Who made this?

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

Last updated: Fri Oct 18 2024 16:49:59 GMT-0900 (Hawaii-Aleutian Daylight Time)