Skip to content

compile failed with method conflict error  #595

@LeeKM

Description

@LeeKM

when i has code below in my project

class CustomView: UIView {
     weak var viewController : ViewController?
}

I got an compile error
Getter for 'viewController' with Objective-C selector 'viewController' conflicts with method 'viewController()' from superclass 'UIView' with the same Objective-C selector,is there any way to fix this problem without changing my code ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions