Comments (11)
Classes in the library are not prefixed with @objc
. So you can't use it from objc code.
But you always can prepare a PR :)
from das-quadrat.
a PR?
Is the @objc
omission on purpose or just to make a statement that we should start using Swift? :P
from das-quadrat.
PR = Pull Request :)
It's my personal opinion that we should use Swift for new stuff. Do you think differently?
from das-quadrat.
So do a pull request and add it to each of the headers?
I still feel like Swift is a bit new. I like it, but I want it to mature a bit more before making the switch. Would be nice to have the reverse compatibility either way. Let me know what I should do here.
from das-quadrat.
from das-quadrat.
It looks like the lack of struct support in Objective-C is going to kill this integration off for now unless someone feels like writing a wrapper. :(
from das-quadrat.
This is kind of a bummer because there are a lot of people that haven't moved to Swift yet, or are trying to maintain active projects that can't be completely rewritten. It'd be nice to have Objective-C support, because Apple designed the Swift language to support both and provide portability.
It's a shame that struct support is missing and the Swift syntax keeps changing, because it seems like a pain to get this to work as easily as Apple implies?
from das-quadrat.
I was able to write a Swift wrapper for the functions I needed and interface with that using Objective-C.
from das-quadrat.
Hi @benguild
How are you?
Could you share the Swift wrapper you wrote?
Thanks
from das-quadrat.
Hello again, @billy84!
The Swift wrapper I ended up writing is for a specific purpose and only covers the functions that I need/use, so it would not be suitable for public release nor for your use... most likely.
As I mentioned in the other issue, you should write your own wrapper that you can call from your Objective-C code, or simply rewrite your own class(es) that need to call this library in Swift. Either one is probably your best bet, but if you want to keep the bulk of your code in Objective-C, you need to write the wrapper as I have suggested and as you have acknowledged.
Good luck! Let us know if you run into any issues related to the library, or if you have any code you want to share with everyone that could be utilized by others.
from das-quadrat.
Hello @benguild
Thank you for your suggestion.
I will try to do so.
Good luck you too!
from das-quadrat.
Related Issues (20)
- Multi Endpoint's HTTPMethod should be optional (POST or GET) HOT 2
- multiTask implementation HOT 2
- Missing Contact Field in Response HOT 3
- Access Token HOT 1
- Why is it called das quadrat? HOT 3
- Missing Rating Field in Response HOT 1
- why is parameter 'locale' internal use only? HOT 2
- Cannot change locale after setup is called HOT 1
- Teardown session
- Migrating to Swift 3 HOT 23
- Support for browser extensions and/or password managers in in-app browser for Foursquare authentication?
- Using in Objective-C project HOT 2
- Swift 3 is not fully supported HOT 8
- Carthage failure
- Swiftlint: variable_name_max_length does not work.
- How to get a venue phone number?
- Is it possible to randomly receive data at the same radius and the same user location?
- Does not compile with Carthage or CocoaPods HOT 1
- how to get venue image
- Can't authenticate with Swarm app if Foursquare app is not installed. — Not sure if this is possible, though?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from das-quadrat.