Giter Site home page Giter Site logo

standard-template-protocols's People

Contributors

cconeil avatar crenwick avatar jhurray avatar readmecritic 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

standard-template-protocols's Issues

Many issues with Xcode 8, swift 3

Hello!
First thank you very much for this library, that's great work, well done!

I've some troubles to make it work with Xcode 8. Actually It was not even compilling. So I decided to make some changes on it to fit requirements of swift 3.

Now it's working fine, I can drag, zoom, rotate etc. But I've got a lot of bugs :

  • When dragging, after releasing my finger, I can't drag anymore everywhere in my superview. It's like the superview were translate as well. But if I print the coordinate of the superview it is still at the right place.
  • Once the view rotated or zoom in, it's over, the view will mismatch my move and ends somewhere hidden in the window...

So I'm wondering if I've done something wrong when adapting the library for swift 3, do you experience the same issues?

Thanks!

Many issues with Xcode 8, swift 3

Hello!
First thank you very much for this library, that's great work, well done!

I've some troubles to make it work with Xcode 8. Actually It was not even compilling. So I decided to make some changes on it to fit requirements of swift 3.

Now it's working fine, I can drag, zoom, rotate etc. But I've got a lot of bugs :

  • When dragging, after releasing my finger, I can't drag anymore everywhere in my superview. It's like the superview were translate as well. But if I print the coordinate of the superview it is still at the right place. Also the center point of the view will always remain the same, even after moving it (the center of the view is relative the its superview).
  • Once the view rotated or zoom in, it's over, the view will mismatch my move and ends somewhere hidden in the window...

So I'm wondering if I've done something wrong when adapting the library for swift 3, do you experience the same issues?

Thanks!

Ok I managed to fix the issue in the Moveable extension by replacing the .began case with this :

let superCenter = self.convert(self.center, to: self.superview!)
startPoint = CGPoint(x: superCenter.x - self.superview!.frame.width/2 + self.frame.width/2 , y: superCenter.y - self.superview!.frame.height/2 + self.frame.height/2)
currentPoint = startPoint

But still when after totaled the view, when I try to drag the view, the translation happens in the referencial of the subview, instead of the superview

Carthage Support?

Seems interesting ~ Would love to pull this using Carthage. Could you add to your target. Trying to avoid the overhead of pods. Carthage simpler and easy to update.

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.