Heres the code, and for some reason Expected Declaration
keeps on showing up beside it. Also these answers didn't seem to work for me.
import UIKit
class SpeechBubble: UIView {
let uButton = UIButton(type: .custom)
let uImage = UIImage (named: "Upvote")
uButton.setImage(uImage, for: .normal)
}
Upvote is an image inside Assets.xcassets that is listed as universal and has 1x, 2x and 3x options