Skip to content

Commit e59739b

Browse files
committed
Update the readme to fix code sample
1 parent a3f30ba commit e59739b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ platform :ios, '13.0' # This does not effect your App Target's deployment target
278278
func 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

0 commit comments

Comments
 (0)