Skip to content

jongwonwoo/JWZoomableLivePhotoView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JWZoomableLivePhotoView

Zoomable View for Live Photo

Swift usage

private func makeLivePhotoView() {
  let livePhotoView = ZoomableLivePhotoView.init(frame: CGRect.zero)
  livePhotoView.maximumZoomScale = 3.0

  livePhotoView.translatesAutoresizingMaskIntoConstraints = false
  self.contentView.addSubview(livePhotoView)
  livePhotoView.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant: 0).isActive = true
  livePhotoView.trailingAnchor.constraint(equalTo: self.contentView.trailingAnchor, constant: 0).isActive = true
  livePhotoView.topAnchor.constraint(equalTo: self.contentView.topAnchor, constant: 0).isActive = true
  livePhotoView.bottomAnchor.constraint(equalTo: self.contentView.bottomAnchor, constant: 0).isActive = true

  livePhotoView.delegate = self
}

About

Zoomable View for Live Photo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages