Sha256: f9dbce40118991eccead416bcb63fa014f5eb7f31bba9bfee610f686dd57d8a8
Contents?: true
Size: 541 Bytes
Versions: 4
Compression:
Stored size: 541 Bytes
Contents
import UIKit import Turbo final class ViewController: VisitableViewController, ErrorPresenter { override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = .systemBackground navigationItem.backButtonDisplayMode = .minimal if presentingViewController != nil { navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(dismissModal)) } } @objc func dismissModal() { dismiss(animated: true) } }
Version data entries
4 entries across 2 versions & 1 rubygems