mohsinalimat / UIStoryView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIStoryView

Installation

UIStoryView supports swift 5.0, iOS 10

  1. Add pod ‘UIStoryView’
  2. Install the pods by running pod install.
  3. Add import UIStoryView in the .swift files where you want to use it.

Basic Usage

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);

Caveats

yourStorySectionModels has to conform IStorySection protocol.

Dependencies

UIStoryView uses SDWebImage

References

Cube animation was partly taken from oyvinddd/ohcubeview.

About

License:MIT License


Languages

Language:Swift 80.2%Language:Ruby 18.4%Language:Objective-C 1.4%