I am trying to access the MyCustomView from another class using the following code in ViewController.swift ..
MyCustomView
var view = MyCustomView(frame: CGR
let viewDemo = UIView() viewDemo.frame = CGRect(x: 50, y: 50, width: 50, height: 50) self.view.addSubview(viewDemo)