The self identifier indicates a reference to the class where it is being used. So if this code is declared inside a class called, “MyViewController”, then
self is a reference to MyViewController.
SwiftUI is a different beast, and so many things done in UIKit are simplified in SwiftUI, which means shorter syntax