UIStoryView supports swift 5.0, iOS 10
- Add pod ‘UIStoryView’
- Install the pods by running pod install.
- Add import UIStoryView in the .swift files where you want to use it.
let storiesViewController = StoriesBuilder(yourStorySectionModels)
.setTrackTintColor(color: UIColor.black.withAlphaComponent(0.16)) // Optional
.setProgressTintColor(color: UIColor.white) // Optional
.build();
self.present(storiesViewController, animated: true, completion: nil);
yourStorySectionModels
has to conform IStorySection
protocol.
UIStoryView uses SDWebImage
Cube animation was partly taken from oyvinddd/ohcubeview.