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

There is build error for Swift 4 #59

Open
quytinypulse opened this issue Mar 1, 2018 · 0 comments
Open

There is build error for Swift 4 #59

quytinypulse opened this issue Mar 1, 2018 · 0 comments

Comments

@quytinypulse
Copy link

quytinypulse commented Mar 1, 2018

Swift doesn't allow overriding a method in an extension. The fastest way to fix is adding @objc to the method:

extension UIView {
    @objc public var nibContainerView: UIView {
        return self
    }
    /**
     Called in the default implementation of loadNib(). Default is class name.

     - returns: Name of a single view nib file.
     */
    open func nibName() -> String {
        return type(of: self).description().components(separatedBy: ".").last!
    }
}

I don't have permission to make a PR, so please help release new version including that update.

Thanks & Best Regards,

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

No branches or pull requests

1 participant