Skip to content
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

Made it possible to subclass SwipyCell for custom tableview cells #5

Merged
merged 3 commits into from Nov 25, 2016

Conversation

Msurrow
Copy link
Contributor

@Msurrow Msurrow commented Nov 12, 2016

Apparently the SwipyCell class wasn't subclass-able with new access rules for Swift 3. See solution to: http://stackoverflow.com/questions/39072300/xcode-8-cannot-inherit-from-non-open-class

I needed a custom cell based on the SwipyCell class, so I just changed types access modifier from 'public' to 'open'. Use if you want :-)

…. Class must be open (not just public) to subclass outside a module.
…. Class must be open (not just public) to subclass outside a module.
@moritzsternemann
Copy link
Owner

Do you need SwipyCell to be subclassable? Didn't think it was necessary, but if there is a demand I'm happy to merge!

Thanks for the PR 😄

@Msurrow
Copy link
Contributor Author

Msurrow commented Nov 22, 2016

Well I'm new to iOS dev, so maybe I'm doing it wrong. But I need a custom table cell that has both the swipe properties from SwipyCell and custom layout with labels, images etc. Thus I've made my own MyTableViewCell as a subclass of SwipyCell. If thats the correct way to go about it, then it needs to be subclassable :-)

@moritzsternemann moritzsternemann merged commit b7d2302 into moritzsternemann:master Nov 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants