Code Monkey home page Code Monkey logo

instagram_stories's Introduction

Instagram Stories

Screenshots

Codacy Badge

Features

  • Supports portrait orientation(only) in iPhone and all orientations on iPad.

  • Image Support

  • Video Support

  • Long press pause and play

  • Manual swipe between stories

  • Left tap and Right-tap gestures to switch between snaps and stories

  • If there is no user interruption, it will automatically move to the next snap or next story, once the progress bar completes.

  • Image caching handled using NSCache.

  • Video caching is handled in the documents directory using FileManager.

  • Users can define the snap index, from where they want to start the snap by setting the handPickedSnapIndex value. In IGHomeController, when instantiating IGStoryPreviewController user can set this value. The below code is just reference and it has been written in IGHomeController.

    let storyPreviewScene = IGStoryPreviewController.init(stories: stories_copy, handPickedStoryIndex: indexPath.row-1, handPickedSnapIndex: 2)

  • Delete snap

  • Clear Image & Video Caches

How To Use

  • Open the project(Instagram_Stories) folder. You can find the Source folder inside.
  • Drag and drop the Source folder into your project.
  • In your project, use the same IGStoryPreviewController.
  • But do not change the default code that we have written in IGStoryPreviewController. You can add code on top of that.
  • Also do not change the collectionView custom cell. Use the same IGStoryPreviewCell.
  • Because all the functionalities are handled in the IGStoryPreviewCell only.
  • If there is any issue or don't know how to configure the Source folder on your project, please raise Github's issues. We will reply as soon as possible.

Requirements

  • iOS 10
  • Xcode 8

We

Contributing

License

All the code here is under MIT license. Which means you could do virtually anything with the code. I will appreciate it very much if you keep an attribution where appropriate.

The MIT License (MIT)

Copyright (c) 2013 ranjit ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

instagram_stories's People

Contributors

boominadhaprakash avatar ranmyfriend avatar boominadhapm avatar sobhanst96 avatar tiskender2 avatar codacy-badger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.