Question : how to use IBOutlet variables as static in swift
Answered by : programmer-919
class Test: UIViewController { var boxGender: UIView! static var instance: Test? override func viewDidLoad() { super.viewDidLoad() Test.instance = self }
}
Test.instance?.boxGender
Source : https://stackoverflow.com/questions/51472211/swift-set-iboutlet-static | Last Update : Mon, 23 May 22