From 2b51baa1981fb445b938e64bdce539e58fe70264 Mon Sep 17 00:00:00 2001 From: Runt <qingingrunt2010@qq.com> Date: Sat, 26 Jul 2025 13:17:14 +0000 Subject: [PATCH] 小窗缩放, 相机转小窗显示 小窗旋转,相机画面旋转 关闭按钮优化 --- LiveProject/views/TitleBarView.swift | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/LiveProject/views/TitleBarView.swift b/LiveProject/views/TitleBarView.swift index a58fd40..d063a17 100644 --- a/LiveProject/views/TitleBarView.swift +++ b/LiveProject/views/TitleBarView.swift @@ -12,9 +12,9 @@ @Environment(\.presentationMode) var presentationMode var title = "" - var imgLeft = "IconBack"; + var iconBack = Icons.BACK; var imgRight = ""; - var titleColor = "ColorText" + var titleColor = Color.colorText var body: some View { @@ -24,11 +24,14 @@ print("Click back button") self.presentationMode.wrappedValue.dismiss() }) { - Image(imgLeft) - .frame(width: 28,height: 28) + Image(systemName: iconBack.name) + .resizable() + .frame(width: iconBack.size.width, height: iconBack.size.height) + .aspectRatio(contentMode: .fit) + .foregroundColor(Color.white) } Spacer() - Text(title).foregroundColor(Color.init(titleColor)) + Text(title).foregroundColor(titleColor) .bold().font(Font.system(size: 16)) Spacer() Image(imgRight).frame(width: 28,height: 28) -- Gitblit v1.9.1