Giter Site home page Giter Site logo

amoghvs22 / storyflip Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 33.73 MB

An Instagram style image/video control that animates segments like Snapchat or Instagram Stories

License: MIT License

Swift 49.60% Ruby 0.81% Objective-C 1.81% Shell 47.29% C 0.49%

storyflip's Introduction

Swift Version

StoryFlip

An Instagram style image/video control that animates segments like Snapchat or Instagram Stories. This is an example project and not a framework.

Requirements

  • iOS 10.2+
  • Xcode 8

Usage

Create Media objects based on media type(photo/video) from the bundle

 let media: Media  = Media(url: defaultURL + "/pic1.jpeg", type: Type.Photo, duration: 5)

Create a UserInfo object and add the Media objects to the images array

let userInfo = UserInfo()
userInfo.profileImage = UIImage(named: "profilePic1")
userInfo.userName = "Amogh"
let media: Media  = Media(url: defaultURL + "/pic1.jpeg", type: Type.Photo, duration: 5)
let media1:Media  = Media(url: defaultURL + "/video1.mp4", type: Type.Video, duration: nil)
let media2: Media  = Media(url: defaultURL + "/pic2.jpg", type: Type.Photo, duration: 5)
userInfo.images = [media, media1, media2]

Load StoryViewController and set the UserInfo object of the VC

let vc = StoryViewController()
vc.userInfo = cell.info
self.present(vc, animated: true, completion: nil)

storyflip's People

Contributors

amoghvs22 avatar

Stargazers

samma avatar Haris Budi E avatar Faris Albalawi 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.