-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c532b3
commit 82f242c
Showing
31 changed files
with
1,273 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,3 +168,5 @@ cython_debug/ | |
.chroma | ||
*.ipynb | ||
google_credentials.json | ||
|
||
./node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
app/ios/rac/rac.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
app/ios/rac/rac.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
20 changes: 20 additions & 0 deletions
20
app/ios/rac/rac/Assets/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "display-p3", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "255", | ||
"green" : "177", | ||
"red" : "148" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
app/ios/rac/rac/Assets/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
app/ios/rac/rac/Assets/Assets.xcassets/logo.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "logo.svg", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"preserves-vector-representation" : true | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
app/ios/rac/rac/Assets/Assets.xcassets/logo.imageset/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// View+Extensions.swift | ||
// rac | ||
// | ||
// Created by ZongZiWang on 7/9/23. | ||
// | ||
|
||
import SwiftUI | ||
|
||
extension View { | ||
@ViewBuilder func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View { | ||
if condition { | ||
transform(self) | ||
} else { | ||
self | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>UIAppFonts</key> | ||
<array> | ||
<string>Prompt-SemiBold.ttf</string> | ||
<string>Prompt-Regular.ttf</string> | ||
<string>Prompt-Medium.ttf</string> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// InteractiveView.swift | ||
// rac | ||
// | ||
// Created by ZongZiWang on 7/9/23. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct InteractiveView: View { | ||
|
||
var body: some View { | ||
VStack { | ||
Image(systemName: "globe") | ||
.imageScale(.large) | ||
.foregroundColor(.accentColor) | ||
Text("Interactive") | ||
} | ||
.padding() | ||
} | ||
} | ||
|
||
struct InteractiveView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
InteractiveView() | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
app/ios/rac/rac/Preview Content/Preview Assets.xcassets/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// RootView.swift | ||
// rac | ||
// | ||
// Created by ZongZiWang on 7/9/23. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct RootView: View { | ||
@State var interactive = false | ||
|
||
var body: some View { | ||
NavigationView { | ||
VStack { | ||
if interactive { | ||
InteractiveView() | ||
} else { | ||
WelcomeView { option in | ||
interactive = true | ||
} | ||
} | ||
} | ||
.navigationBarTitleDisplayMode(.inline) | ||
.navigationBarItems(leading: LogoView().padding(.leading, 44), | ||
trailing: EmptyView()) | ||
} | ||
} | ||
} | ||
|
||
struct LogoView: View { | ||
var body: some View { | ||
Image("logo") | ||
.resizable() | ||
} | ||
} | ||
|
||
struct RootView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
RootView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// | ||
// CtaButton.swift | ||
// rac | ||
// | ||
// Created by ZongZiWang on 7/9/23. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct CtaButton: View { | ||
let action: () -> Void | ||
let text: String | ||
|
||
var body: some View { | ||
Button(action: action) { | ||
Text(text) | ||
.font( | ||
Font.custom("Prompt", size: 18) | ||
.weight(.medium) | ||
) | ||
.foregroundColor(.white) | ||
.padding(.horizontal, 20) | ||
.padding(.vertical, 9) | ||
.frame(maxWidth: .infinity, minHeight: 52, maxHeight: 52, alignment: .center) | ||
.background(Color(red: 0.01, green: 0.03, blue: 0.11)) | ||
.cornerRadius(4) | ||
} | ||
.buttonStyle(CustomButtonStyle()) | ||
} | ||
} | ||
|
||
struct CustomButtonStyle: ButtonStyle { | ||
@Environment(\.isEnabled) var isEnabled: Bool | ||
|
||
func makeBody(configuration: Configuration) -> some View { | ||
configuration.label | ||
.opacity(!isEnabled ? 0.25 : configuration.isPressed ? 0.8 : 1.0) | ||
} | ||
} | ||
|
||
struct CtaButton_Previews: PreviewProvider { | ||
static var previews: some View { | ||
VStack { | ||
CtaButton(action: { }, text: "Contribute") | ||
|
||
CtaButton(action: { }, text: "Contribute") | ||
.disabled(true) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// AboutView.swift | ||
// rac | ||
// | ||
// Created by ZongZiWang on 7/9/23. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct AboutView: View { | ||
|
||
var body: some View { | ||
ScrollView { | ||
VStack(alignment: .leading) { | ||
|
||
Spacer(minLength: 24) | ||
|
||
Text("Realtime (AI Character)") | ||
.font( | ||
Font.custom("Prompt", size: 16).weight(.semibold) | ||
) | ||
.foregroundColor(Color(red: 0.4, green: 0.52, blue: 0.83)) | ||
+ Text(" is a revolutionary project enabling dynamic audio-visual interactions between humans and AI.\n\nPowered by Language Learning Model (LLM), it offers instant, natural, and context-aware responses, paving the way for a new era of interactive AI experiences.") | ||
.font( | ||
Font.custom("Prompt", size: 16).weight(.regular) | ||
) | ||
|
||
Spacer(minLength: 40) | ||
|
||
Text("Authors") | ||
.font( | ||
Font.custom("Prompt", size: 16).weight(.semibold) | ||
) | ||
.foregroundColor(Color(red: 0.4, green: 0.52, blue: 0.83)) | ||
|
||
Text("Shaunwei, lynchee-owo, ZongZiWang, pycui") | ||
.font( | ||
Font.custom("Prompt", size: 16).weight(.regular) | ||
) | ||
|
||
Spacer(minLength: 40) | ||
|
||
Text("Realtime is Open Source") | ||
.font( | ||
Font.custom("Prompt", size: 16).weight(.semibold) | ||
) | ||
.foregroundColor(Color(red: 0.4, green: 0.52, blue: 0.83)) | ||
|
||
Spacer(minLength: 20) | ||
|
||
CtaButton(action: { | ||
UIApplication.shared.open(URL(string: "https://github.com/Shaunwei/Realtime-AI-Character")!) | ||
}, text: "Contribute") | ||
} | ||
} | ||
} | ||
} | ||
|
||
struct AboutView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
AboutView() | ||
.frame(width: 310) | ||
} | ||
} |
Oops, something went wrong.