Code Monkey home page Code Monkey logo

zoomimageview's Introduction

ZoomImageView

CI Status Version License Platform Carthage compatible

UI component library to expand the photo, such as Apple's Photos app. πŸ—»

Requirements

Swift 4.0 iOSπŸ“± 8.0+

Usage

let imageView: ZoomImageView
imageView.image = UIImage()

Features

  • Zoom-in or Zoom-out on Double tap.

if you have some idea. please don't hesitate to share your thoughts.πŸ™βœ¨

Installation

CocoaPods

pod 'ZoomImageView'

Carthage

github "muukii/ZoomImageView"

Author

muukii, [email protected]

License

ZoomImageView is available under the MIT license. See the LICENSE file for more info.

zoomimageview's People

Contributors

muukii avatar nuudles avatar pg-cl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zoomimageview's Issues

Can not access Imageview due to it's private declaration.

Hello Team-

We are trying to do this:

let imageView1 = ZoomImageView(frame: CGRect(x: CGFloat(10), y: CGFloat(50), width: CGFloat(self.view.frame.size.width - 20), height: CGFloat(self.view.frame.size.height - 100)))
imageView1.zoomMode = .fit
imageView1.imageView.sd_setImage(with: URL(string: String(format:"%@",img)), placeholderImage: UIImage(named: "ImageDefault"))

This shows error at line imageView1.imageView.sd_setImage "'imageView' is inaccessible due to 'private' protection level"

Any help will be appreciated!

Rotation ability.

Hello and thank you for your cool & awesome framework!

Can you please add the rotation ability please?

Why it's not showing a subview?

Currently, I tried adding another UIImageView within the ZoomImageView and found that it's not showing a subview. I tried adding it inside the IB.

This is the view hierarchy right now:

screen shot 2017-05-14 at 12 48 03 pm

Is there any solution?

Can't run the demo

I tried to get the demo started so I can work on debugging something that I think might be an issue, but I get an error. Here's what I did:

  1. git clone ...
  2. rm Podfile.lock
  3. pod install (no errors)
  4. open ZoomImageView.xcworkspace
  5. Select Demo, and hit Run.

I'm using Cocoapods 1.5.3, since 1.6.0 (beta2) doesn't work with some projects.

What I think should happen:
It should run the demo.

What actually happens:
The build fails with four errors. Here's a representative example: error: /Users/Bartholomew/dev/ZoomImageView/Pods/Pods/Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig: unable to open file (in target "Demo" in project "ZoomImageView") (in target 'Demo')

Any thoughts?

Modify zoom scale

Is it possible to change the zoom scale? Currently it can only zoom in slightly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.