Swiftpack.co - manucodin/InstaGallery as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by manucodin.
manucodin/InstaGallery 0.4.2
📷 Easy way to access your Instagram gallery and medias in Swift
⭐️ 8
🕓 1 year ago
iOS
.package(url: "https://github.com/manucodin/InstaGallery.git", from: "0.4.2")

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?

GitHub

link
Stars: 8
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics