Commit 8af9e919 authored by shigemi miura's avatar shigemi miura

iPadの画面サイズ毎にメニュー高さを変更するように対応

parent 2d1d9f12
......@@ -329,11 +329,17 @@ struct CustomTabBar: View {
private func mapFunctionsView() {
let screenBounds = UIScreen.main.bounds
let screenHeight = screenBounds.height
let menuTaskViewWidth: CGFloat = 400
let menuTaskViewHeight: CGFloat = 300
let menuTaskViewOffset: CGFloat = 80
let menuTaskViewX: CGFloat = 10
let menuTaskViewY = screenBounds.height - menuTaskViewHeight - menuTaskViewOffset
// メニューの縦サイズを画面の高さに応じて計算
let menuTaskViewHeight = max(200, screenHeight * 0.8)
// メニューのY座標を計算(画面の下部に配置)
let menuTaskViewY = screenHeight - menuTaskViewHeight - menuTaskViewOffset
MenuWindowManager.shared.showMenuView(
MenuTaskView()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment