Swift - "Expected type before ->": When adding a target to a button
<p>I have the following snippet which I am trying therein to add a target to a button I have created. That gives me an error <code>Expected type before "-&gt;"</code>. What am I doing wrong? I am a newbie here in swift and kinda confused with what's going on. Anyone mind explaining me what's happening here exactly?</p>

<pre><code>//MARK: Initialization
required init?(coder aDecoder: NSCoder) {
    super.init(coder:aDecoder)

    let button = UIButton(frame: CGRect(x: 0, y: 0, width: 44, height: 44))
    button.backgroundColor = UIColor.red
    button.addTarget(self, action: #selector(RatingControl.ratingButtonTapped(_:)-&gt;()), for: .touchDown)
    addSubview(button) //This is the line that is indicated as erratic
}
</code></pre>

<p><strong>EDIT</strong>
<a href="https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson5.html#//apple_ref/doc/uid/TP40015214-CH19-SW1" rel="nofollow noreferrer">This</a> is what I am following up (one of Apple's pages). There the line is different. That way it indicates an error <code>Type 'RatingControl' has no member 'ratingButtonTapped'</code> where the member is defined inside the class. </p>

<p><strong>EDIT 2</strong>
Following is the method <code>ratingButtonTapped(_:)-&gt;Void</code></p>

<pre><code>func ratingButtonTapped(button: UIButton){
    print("Button pressed ")
}
</code></pre>