Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 831 Bytes

File metadata and controls

42 lines (31 loc) · 831 Bytes

KSnapView

iOS Social Media Story Image Loader 🤳

alt tag

Use

        snpView = KSnapView(to: self)
        snpView.duration = 4
        snpView.count = images.count
        snpView.delegate = self
        snpView.setup()
Use Delegate
  extension mainVC: KSnapViewDelegate {
  
    func didChange(index: Int) {
       self.imgView.image = images[index]
    }
    
    func finished(flag: Bool) {
        if flag {
            // finished
        }
    }
}
Next & Remove
       snpView.next()
       snpView.remove()

License

Usage is provided under the MIT License. See LICENSE for the full details.