From 6c2b4f5cb9d88a93e4f07499d11ddc0e54097433 Mon Sep 17 00:00:00 2001 From: mntone <901816+mntone@users.noreply.github.com> Date: Sat, 3 Feb 2024 15:37:31 +0900 Subject: [PATCH] Fixes an issue that app core doesn't work in iPad mode when launched in SplitView. --- src/App/AppAssembly.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/AppAssembly.swift b/src/App/AppAssembly.swift index aa72abc..a378034 100644 --- a/src/App/AppAssembly.swift +++ b/src/App/AppAssembly.swift @@ -8,7 +8,7 @@ import UIKit struct AppAssembly: Assembly { func assemble(container: Container) { #if os(iOS) - let pad = UIDevice.current.userInterfaceIdiom == .pad + let pad = UIDevice.current.systemName == "iPadOS" #elseif os(macOS) let pad = true #else