File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ platform :ios, '13.0' # This does not effect your App Target's deployment target
278278func application (_ application : UIApplication, didFinishLaunchingWithOptions launchOptions : [UIApplication.LaunchOptionsKey: Any ]? ) -> Bool {
279279 // ...
280280 if #available (iOS 13 , * ) {
281- window.rootViewController = UIHostingController (rootView : contentView )
281+ window.rootViewController = UIHostingController (rootView : ContentView () )
282282 } else {
283283 window.rootViewController = ViewController ()
284284 }
@@ -290,11 +290,11 @@ class ViewController: UIViewController {
290290 var label: UILabel = UILabel ()
291291 override func viewDidLoad () {
292292 super .viewDidLoad ()
293- self . view .backgroundColor = .white
294- self . view .addSubview (label)
295- self . label .text = " Hello World iOS 12!"
296- self . label .sizeToFit ()
297- self . label .center = self . view .center
293+ view.backgroundColor = .white
294+ view.addSubview (label)
295+ label.text = " Hello World iOS 12!"
296+ label.sizeToFit ()
297+ label.center = view.center
298298 }
299299}
300300
You can’t perform that action at this time.
0 commit comments