InstaGallery
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
- You need a Facebook Developer account, go to Facebook Developer and create a new account if you haven’t yet
- Create a new Facebook application following the steps that appear on the official web site Create Facebook Application for Instagram
- Open your
Info.plist
- Set a new key with name
InstagramClientId
and set your Instagram App Id in this key
- Set a new key with name
InstagramRedirectURI
and set with your Instagram App Redirect URI
- Set one more key with name
InstagramClientSecret
with the Instagram App Secret.
- 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 examplelet galleryController = InstaGallery.gallery(withDelegate: self)
let navigationController = UINavigationController(rootViewController: galleryController)
present(navigationController, animated: true, completion: nil)
- 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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
)
- Commit your changes (
git commit -am 'Add some feature'
)
- Push to the branch (
git push origin my-new-feature
)
- Create pull request
Who made this?
InstaGallery
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
Info.plist
InstagramClientId
and set your Instagram App Id in this keyInstagramRedirectURI
and set with your Instagram App Redirect URIInstagramClientSecret
with the Instagram App Secret.GalleryController
with methodInstaGallery.gallery
. If you need retrieve the media selected, do you need setGalleryDelegate
delegate with the optinal parametersdelegate
. For exampleCocoaPod
InstaGallery is available through CocoaPods. To install it, simply add the following line to your Podfile:
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 yourPackage.swift
.Contribute
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Who made this?