Skip to content

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

License

Notifications You must be signed in to change notification settings

amoghvs22/StoryFlip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published