Giter VIP home page Giter VIP logo

Comments (6)

mayakraft avatar mayakraft commented on July 30, 2024 1

Hi,

I haven't learned swift yet. I'd be happy to port this when I learn it!

-(BOOL) touchInRect:(CGRect)rect;
this will tell return true if a finger is touching inside of a defined rect - this rect is defined in pixels:

if your image is 1024 x 512 pixels, a rect of (0, 0, 10, 256) will be a tall column in the upper left corner, 10 pixels wide stretching halfway down the image.

it returns true when a touch is inside of that rect. if you want more complicated tapping and releasing, i wonder if you could use a TapGesture in conjunction with my touchInRect function..

from panorama.

fboulegue avatar fboulegue commented on July 30, 2024

any progress on this :-)?

from panorama.

mayakraft avatar mayakraft commented on July 30, 2024

I've got some free time - considering a Swift re-write.

I have a question for cocoapods: can one cocoapod include both obj-c and swift versions? I've searched about 30+ pods, each one is either one language or the other, none contain both. Is anyone familiar with cocoapods and know best practices here?

from panorama.

chrismerron avatar chrismerron commented on July 30, 2024

My knowledge and experience so far is that once you use 'use_frameworks!' to include a swift pod then all pods update to their swift equivalent. It's been a real pain in my projects updating everything to swift but happy to be proved wrong and learn if it's possible!

from panorama.

CristianCardosoA avatar CristianCardosoA commented on July 30, 2024

You can add both Swift and obj-c via cocoa pods. Just add on plist file > user header search paths > Pods/**

from panorama.

mayakraft avatar mayakraft commented on July 30, 2024

I feel like Obj-C is working great inside swift projects, including with cocoapods using use_frameworks! like what chris said. A Swift re-write isn't necessary.

Unless anything else comes up, probably no re-write will happen (I tried last year it's not as easy as I expected). Going to close for now.

from panorama.

Related Issues (20)

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.