Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaa committed Apr 23, 2024
1 parent cbeb32e commit 2b19fba
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
}
}
},
"Apple official support page" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "Apple公式サポートページ"
}
}
}
},
"Apple Vision Pro" : {
"localizations" : {
"ja" : {
Expand Down Expand Up @@ -51,6 +61,16 @@
}
}
},
"During a FaceTime call, if the person you are speaking with starts SharePlay, you will automatically join SharePlay as well. If you want to join a SharePlay session that has already started, you can do so from the Control Center." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "FaceTimeの通話中に誰かがSharePlayを開始すると、通話相手は自動的にSharePlayに参加します。もし既に通話相手がSharePlayを開始している場合は、コントロールセンターから参加できます。"
}
}
}
},
"Enter full space" : {
"localizations" : {
"ja" : {
Expand Down Expand Up @@ -91,12 +111,12 @@
}
}
},
"If your friend has already started chess activity, you can join the activity by manipulating the system-side UI." : {
"If your friend has already started chess activity, you can join the activity from the Control Center." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "友達が既に「チェス」アクティビティを起動している場合は、システム側のUIを操作してアクティビティに参加しましょう。"
"value" : "友達が既に「チェス」アクティビティを起動している場合は、コントロールセンターからアクティビティに参加しましょう。"
}
}
}
Expand All @@ -111,6 +131,16 @@
}
}
},
"Join SharePlay" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "SharePlayに参加する"
}
}
}
},
"joined" : {
"localizations" : {
"ja" : {
Expand Down Expand Up @@ -201,6 +231,16 @@
}
}
},
"The Persona (or Spatial Persona) is displayed as part of SharePlay, in collaboration with this app and FaceTime." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "FaceTimeとこのアプリが連携し、ペルソナ(また空間ペルソナ)は表示されます。"
}
}
}
},
"unknown" : {
"localizations" : {
"ja" : {
Expand All @@ -221,6 +261,16 @@
}
}
},
"What's Persona?" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "ペルソナって何?"
}
}
}
},
"What's SharePlay?" : {
"localizations" : {
"ja" : {
Expand Down Expand Up @@ -251,12 +301,12 @@
}
}
},
"You can also start SharePlay yourself. Please manipulate the system-side UI." : {
"You can also start SharePlay yourself. During a FaceTime call, a system menu UI for SharePlay appears at the bottom of the app. You can start SharePlay from the menu." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "自分からSharePlayを開始する事もできます。システム側のUIを操作してください。"
"value" : "自分からSharePlayを開始する事もできます。FaceTimeの通話中にアプリ下部にSharePlay用のシステムUIが表示されます。そのメニューからSharePlayを開始できます。"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Chess with Spatial Personas.\n\n- Simple design.\n\n- Move pieces freely.\n\n- Support Spatial SharePlay.\n\n- Undo function.\n\n- Adjust a board height.\n\n- Adjust a board rotaion.\n\n- Adjust a board scale."
"value" : "Chess with Spatial Personas.\n\n- Simple design.\n\n- Move pieces freely.\n\n- Support Spatial SharePlay.\n\n- Undo function.\n\n- Adjust a board height.\n\n- Adjust a board rotaion.\n\n- Adjust a board scale.\n\n\nNotice\n\n- To use SharePlay, a FaceTime call is required.\n\n- You must set up your persona on the OS beforehand.\n\n- The persona appears as part of FaceTime/SharePlay."
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "空間ペルソナでチェスしよう!\n\n・シンプルなデザイン\n\n・駒を自由に動かす\n\n・空間シェアプレイ対応\n\n・「戻す」機能\n\n・ボードの高さ変更機能\n\n・ボード回転機能\n\n・ボードスケール変更機能\n\n\n==== English ====\nChess with Spatial Personas.\n\n- Simple design.\n\n- Move pieces freely.\n\n- Support Spatial SharePlay.\n\n- Undo function.\n\n- Adjust a board height.\n\n- Adjust a board rotaion.\n\n- Adjust a board scale."
"value" : "空間ペルソナでチェスしよう!\n\n・シンプルなデザイン\n\n・駒を自由に動かす\n\n・空間シェアプレイ対応\n\n・「戻す」機能\n\n・ボードの高さ変更機能\n\n・ボード回転機能\n\n・ボードスケール変更機能\n\n\n「注意」\n\n・SharePlayをするにはFaceTimeで通話する必要があります。\n\n・OS側で先にペルソナを設定する必要があります。\n\n・ペルソナはFaceTime/SharePlayの一部として表示されます。\n\n\n==== English ====\nChess with Spatial Personas.\n\n- Simple design.\n\n- Move pieces freely.\n\n- Support Spatial SharePlay.\n\n- Undo function.\n\n- Adjust a board height.\n\n- Adjust a board rotaion.\n\n- Adjust a board scale.\n\n\nNotice\n\n- To use SharePlay, a FaceTime call is required.\n\n- You must set up your persona on the OS beforehand.\n\n- The persona appears as part of FaceTime/SharePlay."
}
}
}
Expand Down
58 changes: 44 additions & 14 deletions PersonaChess/View/Volume/SharePlayMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ struct SharePlayMenu: View {
List {
Section {
NavigationLink("What's SharePlay?") { Self.whatsSharePlayMenu() }
NavigationLink("What's Persona?") { Self.whatsPersonaMenu() }
}
if self.isEligibleForGroupSession {
Text("You are currently connected with a friend. Join an activity launched by your friend, or launch an activity by yourself.")
Text("If your friend has already started chess activity, you can join the activity by manipulating the system-side UI.")
Text("If your friend has already started chess activity, you can join the activity from the Control Center.")
}
if self.model.groupSession == nil {
Section {
NavigationLink("Set up SharePlay") { self.activityMenu() }
NavigationLink("Set up SharePlay") { self.setUpMenu() }
}
}
if self.model.groupSession?.state != nil {
Expand Down Expand Up @@ -81,6 +82,16 @@ private extension SharePlayMenu {
Text("With SharePlay in the FaceTime app, you can play chess in sync with friends and family while on a FaceTime call together. Enjoy a real-time connection with others on the call—with synced game and shared controls, you see and hear the same moments at the same time.")
}
.padding()
let url = URL(string: "https://support.apple.com/guide/apple-vision-pro/use-shareplay-in-facetime-calls-tan15b2c7bf9/1.0/visionos/1.0")!
Section {
Link(destination: url) {
Text(verbatim: #"“Use SharePlay in FaceTime calls on Apple Vision Pro - Apple Support”"#)
}
} header: {
Text("Apple official support page")
} footer: {
Text(verbatim: "\(url)")
}
Section {
Text("The Group Activities framework uses end-to-end encryption on all session data. Developer and Apple doesn’t have the keys to decrypt this data.")
} header: {
Expand All @@ -89,29 +100,48 @@ private extension SharePlayMenu {
}
.navigationTitle("What's SharePlay?")
}
private func activityMenu() -> some View {
private static func whatsPersonaMenu() -> some View {
List {
Text("The Persona (or Spatial Persona) is displayed as part of SharePlay, in collaboration with this app and FaceTime.")
let url1 = URL(string: "https://support.apple.com/guide/apple-vision-pro/use-spatial-persona-tana1ea03f18/visionos")!
Section {
Link(destination: url1) {
Text(verbatim: #""Use spatial Persona (beta) on Apple Vision Pro - Apple Support”"#)
}
} header: {
Text("Apple official support page")
} footer: {
Text(verbatim: "\(url1)")
}
let url2 = URL(string: "https://support.apple.com/guide/apple-vision-pro/capture-your-persona-beta-dev934d40a17/1.0/visionos/1.0")!
Section {
Link(destination: url2) {
Text(verbatim: #"“Capture and edit your Persona (beta) on Apple Vision Pro - Apple Support”"#)
}
} footer: {
Text(verbatim: "\(url2)")
}
}
.navigationTitle("What's Persona?")
}
private func setUpMenu() -> some View {
List {
Section {
Text("If you launch this application during FaceTime, you can start an activity. When you launch an activity, the caller's device will show a notification asking them to join SharePlay.")
} header: {
Text("How to start")
}
Section {
Text("You can also start SharePlay yourself. Please manipulate the system-side UI.")
Text("You can also start SharePlay yourself. During a FaceTime call, a system menu UI for SharePlay appears at the bottom of the app. You can start SharePlay from the menu.")
Text("Once you have started an activity, encourage your friends to join SharePlay.")
} header: {
Text("Start SharePlay by oneself")
}
// Section {
// Button("Start activity!") {
// self.model.activateGroupActivity()
// }
// .disabled(
// !self.groupStateObserver.isEligibleForGroupSession
// ||
// self.model.groupSession?.state != nil
// )
// }
Section {
Text("During a FaceTime call, if the person you are speaking with starts SharePlay, you will automatically join SharePlay as well. If you want to join a SharePlay session that has already started, you can do so from the Control Center.")
} header: {
Text("Join SharePlay")
}
}
}
}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ Chess with Spatial Personas.
- Adjust a board scale.


Notice

- To use SharePlay, a FaceTime call is required.

- You must set up your persona on the OS beforehand.

- The persona appears as part of FaceTime/SharePlay.


App Store link
--------------
[apps.apple.com/app/id6482994319](https://apps.apple.com/app/id6482994319)
Expand Down

0 comments on commit 2b19fba

Please sign in to comment.