-
Notifications
You must be signed in to change notification settings - Fork 44
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
Declarations from extensions cannot be overridden yet #1
Comments
I found the problem. I was passing a variable of type isn't NSObject subclass. I got it when I tried to put the keyword Thank you. |
Yes, because it's all based on UIResponder. Add
|
@radianttap , I think it's a Swift 4 issue. Will you consider update the project to support Swift 4? |
Library itself is working in both Swift 3 / 4. I have updated the demo project and used pods to Swift 4. |
I see some problems however in your (@radianttap) implementation of the "Coordinator" pattern. For example you are using |
I have discussed this in the very first post I wrote about the pattern implementation, see Downsides at the end of this post.
This is solved through boxing. See for example ColorBox in Color.swift in the example app.
Yep. Hence my continued emphasys on common sense. I don't attempt to save the developer from themself. Nor I think it's actually technically feasible to limit visibility of these methods while keeping the good parts.
I personally don't see these as problems – it's a deliberate choice on my part, a trade off between usability and what I can do in UIKit while working from outside of UIKit team. |
Hi Aleksandar,
Thank you for the great coordinator. I am trying to follow your steps in the example.
You have added for example:
Then in the applicationCoordinator you override them:
```
// UIResponder coordinating messages
The text was updated successfully, but these errors were encountered: