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

Adding a background colour to titleLabel is creating a shadow on top and right side #311

Open
madhukiranraju opened this issue Mar 5, 2020 · 0 comments

Comments

@madhukiranraju
Copy link

madhukiranraju commented Mar 5, 2020

Hi ,

I am using Xcode 11.3 and build a sample for 13.3 simulator and iPhone.
I found a problem when adding the background colour to the self.titleLabel to white, the titleLabel is creating a shadow in the right and on top.


 override open func layoutSubviews() {
        super.layoutSubviews()

        self.titleLabel.backgroundColor = UIColor.white

        titleLabel.frame = titleLabelRectForBounds(bounds, editing: isTitleVisible() || _renderingInInterfaceBuilder)
        errorLabel.frame = errorLabelRectForBounds(bounds, editing: isErrorVisible() || _renderingInInterfaceBuilder)
        lineView.frame = lineViewRectForBounds(bounds, editing: editingOrSelected || _renderingInInterfaceBuilder)
    }

Please let me know any solution for this

Thanks,
Madhu
Simulator Screen Shot - iPhone 11 Pro - 2020-03-05 at 15 18 26

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