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
278
278
func application (_ application : UIApplication, didFinishLaunchingWithOptions launchOptions : [UIApplication.LaunchOptionsKey: Any ]? ) -> Bool {
279
279
// ...
280
280
if #available (iOS 13 , * ) {
281
- window.rootViewController = UIHostingController (rootView : contentView )
281
+ window.rootViewController = UIHostingController (rootView : ContentView () )
282
282
} else {
283
283
window.rootViewController = ViewController ()
284
284
}
@@ -290,11 +290,11 @@ class ViewController: UIViewController {
290
290
var label: UILabel = UILabel ()
291
291
override func viewDidLoad () {
292
292
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
298
298
}
299
299
}
300
300
You can’t perform that action at this time.
0 commit comments