-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not convert APIs not available in Swift #160
Comments
@Ibrahimhass I know that NSInvocation isn't available in Swift, but can you suggest any straightforward change to the converter to cover this? If you find any drop-in Swift replacement, i.e. like the SwiftTryCatch library, we could use that. |
@alex-swiftify This is one GitHub Project which can be used. Please let me know if this can be used, if so then I will update it to Swift 5 and we can use it in the same way as |
@Ibrahimhass Feel free to try updating the project to the latest Swift version. After a very quick look, the library could help to port the code from the summary of https://swiftify.atlassian.net/browse/SWC-805, |
@Ibrahimhass If this is doable in under 2 hours you may update and publish that project. |
@alex-swiftify I have updated the project to Swift 5 and can successfully get the output for the test case mentioned here
But for cases where the function needs a parameter or returns a value type, the program crashes as we have to use the Somewhat related StackOverflow answer. This might take longer than 2 hours so lets postpone this for now. |
@Ibrahimhass I got you. Let's either push the update to Swift 5.x as the PR to the original repo, or fork SwiftyInvocation in the Swiftify repo. |
@alex-swiftify I have a forked version on my GitHub profile where the issues were already fixed earlier. I have also forked a version of the original repo under Swiftify |
@Ibrahimhass Isn't it more logical to have the version updated to Swift 5 under Swiftify? |
@alex-swiftify Yes, without a doubt, I had earlier forked it to my profile here, the Swift 5 code had some issues I was thinking of fixing this issue first and then update the repository here |
@Ibrahimhass Well, if we agreed that we postpone this, maybe you just fork from your repository to Swiftify for now. |
@alex-swiftify I have forked my repo to Swiftify now. |
Here is the Objective C code.
Converted Swift Code:
But NSInvocation is not available in Swift.
The text was updated successfully, but these errors were encountered: