From 3b7521a47ae731f0bf0a922822e4417493489539 Mon Sep 17 00:00:00 2001 From: Runt <qingingrunt2010@qq.com> Date: Wed, 09 Jul 2025 10:42:02 +0000 Subject: [PATCH] 小窗布局,小窗移动 --- LiveProject/views/TitleBarView.swift | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/LiveProject/views/TitleBarView.swift b/LiveProject/views/TitleBarView.swift index 7cfce53..d063a17 100644 --- a/LiveProject/views/TitleBarView.swift +++ b/LiveProject/views/TitleBarView.swift @@ -12,7 +12,7 @@ @Environment(\.presentationMode) var presentationMode var title = "" - var iconBack = IconBack(); + var iconBack = Icons.BACK; var imgRight = ""; var titleColor = Color.colorText @@ -24,7 +24,11 @@ print("Click back button") self.presentationMode.wrappedValue.dismiss() }) { - iconBack.stroke(Color.primary, lineWidth: 2.5).frame(width: 18,height: 14) + Image(systemName: iconBack.name) + .resizable() + .frame(width: iconBack.size.width, height: iconBack.size.height) + .aspectRatio(contentMode: .fit) + .foregroundColor(Color.white) } Spacer() Text(title).foregroundColor(titleColor) -- Gitblit v1.9.1