Swift – An Instagram Photo/Video Viewer App
I said in a previous post I’d try to share some Swift code however I’ve decided to go one better and share a complete iOS application, specifically for the iPhone written entirely in Swift called InstaDude. The code can be found here on GitHub. We’re using many features supported by Swift including enums, protocols, extensions, notifications, and optionals as well as using the new UIVisualEffectView introduced with iOS8 to create a nice blur effect.
The application polls Instagram for the most popular photos/videos and displays them in a UICollectionView, tapping a photo/video will take you to a new screen for that ‘media item’ along with displaying some additional detail, if it’s a video it’s played automatically. Enjoy.