Skip to content

Ambiguous use of 'cornerRadius' #150

@kamendo

Description

@kamendo

I am sub-classing M13CheckBox

    init(title:String) {
        super.init(frame: CGRect())
        self.boxType = .square
        self.markType = .checkmark
        self.backgroundColor = UIConstants.buttonBorderColor
        self.cornerRadius = 3
    }

but I have the following error on self.cornerRadius = 3 line -
Ambiguous use of 'cornerRadius'

It goes away if I user
(self as UIView).cornerRadius = 3
but still its worth mentioning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions