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

对UIViewController的扩展属性希望能通过点语法修改,而不只是重写属性 #3

Closed
lzzhoujielun opened this issue May 18, 2020 · 2 comments

Comments

@lzzhoujielun
Copy link

问题:如果使用第三方框架提供的控制器需要到控制器类部重写属性,需要改源码
期望:提供属性set的方式,通过点语法修改(目前是只读)
效果:viewController.wx_useSystemBlurNavBar = true

@alexiscn
Copy link
Owner

alexiscn commented May 19, 2020

You can override wx_useSystemBlurNavBar in extension.

extension TDViewController {
    override var wx_useSystemBlurNavBar: Bool {
        return true
    }
}

@lzzhoujielun
Copy link
Author

Forget can also be extended, thanks for providing ideas!

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

2 participants