Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions Apple Intelligence Chat.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = C5857X34L7;
ENABLE_APP_SANDBOX = YES;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SELECTED_FILES = readonly;
Expand All @@ -266,6 +267,8 @@
MACOSX_DEPLOYMENT_TARGET = 26.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.intelligencetest.Apple-Intelligence-Chat";
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = chat.alexanderjia.com;
"PRODUCT_BUNDLE_IDENTIFIER[sdk=macosx*]" = chat.alexanderjia.com;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
SDKROOT = auto;
Expand All @@ -287,6 +290,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = C5857X34L7;
ENABLE_APP_SANDBOX = YES;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SELECTED_FILES = readonly;
Expand All @@ -307,6 +311,8 @@
MACOSX_DEPLOYMENT_TARGET = 26.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.intelligencetest.Apple-Intelligence-Chat";
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = chat.alexanderjia.com;
"PRODUCT_BUNDLE_IDENTIFIER[sdk=macosx*]" = chat.alexanderjia.com;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
SDKROOT = auto;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>SchemeUserState</key>
<dict>
<key>Apple Intelligence Chat.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions Apple Intelligence Chat/Assets.xcassets/Contents.json

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apple Intelligence Chat/Chat.icon/Assets/type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions Apple Intelligence Chat/Chat.icon/icon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"fill" : "automatic",
"groups" : [
{
"layers" : [
{
"blend-mode-specializations" : [
{
"value" : "normal"
},
{
"appearance" : "dark",
"value" : "lighten"
},
{
"appearance" : "tinted",
"value" : "darken"
}
],
"fill-specializations" : [
{
"appearance" : "tinted",
"value" : {
"solid" : "display-p3:0.00534,0.01233,0.02553,1.00000"
}
}
],
"glass" : true,
"hidden" : false,
"image-name" : "type.png",
"name" : "type",
"opacity-specializations" : [
{
"value" : 0.7
},
{
"appearance" : "dark",
"value" : 0.7
},
{
"appearance" : "tinted",
"value" : 1
}
]
},
{
"blend-mode-specializations" : [
{
"appearance" : "dark",
"value" : "normal"
}
],
"fill-specializations" : [
{
"appearance" : "dark",
"value" : "automatic"
}
],
"hidden" : false,
"image-name" : "AppleIntelligence.png",
"name" : "AppleIntelligence"
}
],
"shadow" : {
"kind" : "neutral",
"opacity" : 0.5
},
"translucency" : {
"enabled" : true,
"value" : 0.5
}
}
],
"supported-platforms" : {
"circles" : [
"watchOS"
],
"squares" : "shared"
}
}
3 changes: 3 additions & 0 deletions Apple Intelligence Chat/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,19 @@ struct ContentView: View {

HStack {
Spacer()

Button(action: handleSendOrStop) {
Image(systemName: isResponding ? "stop.circle.fill" : "arrow.up.circle.fill")
.font(.system(size: 30, weight: .bold))
.foregroundStyle(isSendButtonDisabled ? Color.gray.opacity(0.6) : .primary)
}

.disabled(isSendButtonDisabled)
.animation(.easeInOut(duration: 0.2), value: isResponding)
.animation(.easeInOut(duration: 0.2), value: isSendButtonDisabled)
.glassEffect(.regular.interactive())
.padding(.trailing, 8)
.buttonStyle(.plain)
}
}
.glassEffect(.regular.interactive())
Expand Down
2 changes: 1 addition & 1 deletion Apple Intelligence Chat/MessageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct MessageView: View {
PulsingDotView()
.frame(width: 60, height: 25)
} else {
Text(message.text)
Text(.init(message.text))
.textSelection(.enabled)
}
}
Expand Down