From f46c16797ed43ec0eee986ff0bf76702737a552f Mon Sep 17 00:00:00 2001 From: dongjf <1+dongjf@noreply.git.tutudog.com> Date: Fri, 27 Nov 2026 08:36:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(ios):=20=E5=9C=A8=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=BD=95=E5=85=A5=E3=80=81=E6=89=BE=E7=89=A9?= =?UTF-8?q?=E5=92=8C=E7=A4=BE=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ios/ItemAtlas.xcodeproj/project.pbxproj | 4 +- apps/ios/ItemAtlas/WelcomeView.swift | 58 +++++++++++++------- docs/product/ios-experience.md | 2 +- docs/ui/ios-welcome.md | 19 +++---- 4 files changed, 48 insertions(+), 35 deletions(-) diff --git a/apps/ios/ItemAtlas.xcodeproj/project.pbxproj b/apps/ios/ItemAtlas.xcodeproj/project.pbxproj index ac964ff..9f6ff88 100644 --- a/apps/ios/ItemAtlas.xcodeproj/project.pbxproj +++ b/apps/ios/ItemAtlas.xcodeproj/project.pbxproj @@ -117,7 +117,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 15; + CURRENT_PROJECT_VERSION = 16; GENERATE_INFOPLIST_FILE = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ATLAS_API_BASE_URL = "https://api-atlas.tutudog.com"; @@ -138,7 +138,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 15; + CURRENT_PROJECT_VERSION = 16; GENERATE_INFOPLIST_FILE = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ATLAS_API_BASE_URL = "https://api-atlas.tutudog.com"; diff --git a/apps/ios/ItemAtlas/WelcomeView.swift b/apps/ios/ItemAtlas/WelcomeView.swift index ff7efda..e495681 100644 --- a/apps/ios/ItemAtlas/WelcomeView.swift +++ b/apps/ios/ItemAtlas/WelcomeView.swift @@ -30,10 +30,10 @@ struct WelcomeView: View { var body: some View { ScrollView { - VStack(alignment: .leading, spacing: 22) { + VStack(alignment: .leading, spacing: 18) { EntryBrand(prominent: true) scene - example + featureExamples } .frame(maxWidth: 460, alignment: .leading) .padding(.horizontal, 24) @@ -53,23 +53,35 @@ struct WelcomeView: View { .toolbar(.hidden, for: .navigationBar) } - private var example: some View { - HStack(alignment: .center, spacing: 13) { - Image(systemName: "waveform") - .font(.body.weight(.semibold)) - .foregroundStyle(Color.atlasBlue) - .frame(width: 36, height: 36) - .background(Color.atlasBlue.opacity(0.10), in: .rect(cornerRadius: 10)) - .accessibilityHidden(true) - VStack(alignment: .leading, spacing: 4) { - Text("数据线放在书房抽屉").font(.headline) - Text("说一句,见物帮你记下。").font(.subheadline).foregroundStyle(.secondary) - } - .accessibilityElement(children: .combine) + private var featureExamples: some View { + VStack(spacing: 9) { + feature("智能录入", symbol: "waveform", tint: .atlasBlue, + example: "数据线放在书房抽屉", detail: "说一句,见物帮你记下。") + feature("找物", symbol: "magnifyingglass", tint: .teal, + example: "备用钥匙放哪了?", detail: "玄关 / 鞋柜 / 上层抽屉") + feature("社区", symbol: "bubble.left.and.bubble.right", tint: .indigo, + example: "这个硬盘盒好用吗?", detail: "分享使用感受,也可以评论和打分。") } - .padding(14) + } + + private func feature(_ title: String, symbol: String, tint: Color, example: String, detail: String) -> some View { + HStack(alignment: .top, spacing: 12) { + Image(systemName: symbol) + .font(.subheadline.weight(.semibold)) + .foregroundStyle(tint) + .frame(width: 35, height: 35) + .background(tint.opacity(0.10), in: .rect(cornerRadius: 10)) + .accessibilityHidden(true) + VStack(alignment: .leading, spacing: 3) { + Text(title).font(.caption.weight(.semibold)).foregroundStyle(.secondary) + Text(example).font(.subheadline.weight(.semibold)) + Text(detail).font(.footnote).foregroundStyle(.secondary) + } + } + .padding(11) .frame(maxWidth: .infinity, alignment: .leading) .background(Color(uiColor: .secondarySystemGroupedBackground), in: .rect(cornerRadius: 15)) + .accessibilityElement(children: .combine) } private var signInLink: some View { @@ -89,10 +101,16 @@ struct WelcomeView: View { } private var scene: some View { - Image("WelcomeTray") - .resizable() - .aspectRatio(contentMode: .fit) - .frame(maxWidth: .infinity) + Color.clear + .aspectRatio(1.72, contentMode: .fit) + .overlay { + GeometryReader { frame in + Image("WelcomeTray") + .resizable() + .scaledToFill() + .frame(width: frame.size.width, height: frame.size.height, alignment: .bottom) + } + } .clipShape(.rect(cornerRadius: 21)) .accessibilityHidden(true) } diff --git a/docs/product/ios-experience.md b/docs/product/ios-experience.md index 5829675..55f4fab 100644 --- a/docs/product/ios-experience.md +++ b/docs/product/ios-experience.md @@ -2,7 +2,7 @@ ## 首页 -见物标识在顶部,照片下方用「数据线放在书房抽屉」举例。底部可以进入自己的空间。首次使用时可以新建空空间,或在空间列表里接受家人的邀请。 +见物标识在顶部。照片下方用三张示例卡介绍智能录入、找物和社区。底部可以进入自己的空间。首次使用时可以新建空空间,或在空间列表里接受家人的邀请。 ## 录入 diff --git a/docs/ui/ios-welcome.md b/docs/ui/ios-welcome.md index 93f51e2..3d87f05 100644 --- a/docs/ui/ios-welcome.md +++ b/docs/ui/ios-welcome.md @@ -8,7 +8,7 @@ | 页面 | 布局与交互 | | --- | --- | -| 欢迎 | 品牌置顶。场景照片下展示一个语音录入示例,底部入口进入原生登录。 | +| 欢迎 | 品牌置顶。照片下展示智能录入、找物和社区的示例,底部入口进入原生登录。 | | 登录 | 系统返回按钮、小品牌行、大标题和两个带明确标签的原生输入框。密码默认隐藏,可切换显示。 | | 找物与收藏 | 搜索框贴近标题,缩略图左对齐,物品名和完整位置路径置于同一行组。保留可见的空结果和清除搜索动作。 | | 详情 | 标题、照片、完整位置路径依次展示。移位和编辑靠近位置,按角色展示可用动作。 | @@ -18,18 +18,13 @@ ## 首次打开 -见物标识从屏幕安全区顶部起排。照片保留原有构图,示例独立放在照片下方,登录入口贴近底部安全区。 [首页主图](../../apps/ios/ItemAtlas/Assets.xcassets/WelcomeTray.imageset/WelcomeTray.jpg) +见物标识从屏幕安全区顶部起排。照片用横幅构图,下方三张示例卡依次介绍功能。登录入口贴近底部安全区。 [首页主图](../../apps/ios/ItemAtlas/Assets.xcassets/WelcomeTray.imageset/WelcomeTray.jpg) -```text - [标识] 见物 - - [ 玄关托盘里的物品 ] - - 数据线放在书房抽屉 - 说一句,见物帮你记下。 - - [ 进入我的空间 ] -``` +| 示例 | 内容 | +| --- | --- | +| 智能录入 | 「数据线放在书房抽屉」。说一句,见物帮你记下。 | +| 找物 | 「备用钥匙放哪了?」示例结果是「玄关 / 鞋柜 / 上层抽屉」。 | +| 社区 | 「这个硬盘盒好用吗?」可以看或分享使用感受,也可以评论和打分。 | - 登录后加载空间。新账号可新建空空间,或在空间列表接受邀请。 - 页面跟随深色模式和系统字号。小屏可以滚动查看图片和示例,主入口保持可用。