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

Cannot inherit from non-open class 'YNExpandableCell' outside of its defining module #3

Closed
kohdesmond opened this issue Mar 21, 2017 · 4 comments
Assignees

Comments

@kohdesmond
Copy link

Hi @younatics,

just a weird thing

I have to change line 12 of YNTableViewCell.swift from:
public class YNExpandableCell: UITableViewCell { into open class YNExpandableCell: UITableViewCell {

AND

public override func awakeFromNib() { into open override func awakeFromNib() {

to eliminate the error.

not too sure if is an module issues.

@younatics
Copy link
Owner

I will check and answer it ASAP

@younatics
Copy link
Owner

Hi @kohdesmond,

Probably, you tried to subclass my class.
I changed every public class to open class so you can use it right now :)
See v0.4.0

Please reopen this issue if it still doesn't work

Thanks,
younatics

@younatics younatics self-assigned this Mar 21, 2017
@kohdesmond
Copy link
Author

Cheers, thanks.
Swift 3.0 are more restrictive but better

@younatics
Copy link
Owner

I totally agree with you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants