From 9b84ddab635cbd7d891e8f4118394ed6f6e51bfe Mon Sep 17 00:00:00 2001 From: CY2365 Date: Sun, 20 Jun 2021 05:40:26 +0300 Subject: [PATCH] Add modal presentation style for compatibility with iOS13+ --- swift-2048/ViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/swift-2048/ViewController.swift b/swift-2048/ViewController.swift index 7a835655..516d8d74 100644 --- a/swift-2048/ViewController.swift +++ b/swift-2048/ViewController.swift @@ -16,6 +16,7 @@ class ViewController: UIViewController { @IBAction func startGameButtonTapped(_ sender : UIButton) { let game = NumberTileGameViewController(dimension: 4, threshold: 2048) + game.modalPresentationStyle = .fullScreen self.present(game, animated: true, completion: nil) } }