Skip to content

Commit

Permalink
Maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
philippzagar committed Dec 11, 2024
1 parent 3f67a4e commit 35a0c05
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Sources/SpeziChat/ChatView+SpeechButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ extension View {

#if DEBUG
#Preview {
@State var chat: Chat = .init(
@Previewable @State var chat: Chat = .init(
[
ChatEntity(role: .user, content: "User Message!"),
ChatEntity(role: .hidden(type: .unknown), content: "Hidden Message!"),
ChatEntity(role: .assistant, content: "Assistant Message!")
]
)
@State var muted = true
@Previewable @State var muted = true


return NavigationStack {
Expand Down
10 changes: 5 additions & 5 deletions Sources/SpeziChat/ChatView+SpeechOutput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ extension View {

#if DEBUG
#Preview("ChatView") {
@State var chat: Chat = .init(
@Previewable @State var chat: Chat = .init(
[
ChatEntity(role: .user, content: "User Message!"),
ChatEntity(role: .hidden(type: .unknown), content: "Hidden Message!"),
Expand All @@ -129,12 +129,12 @@ extension View {
}

#Preview("ChatViewSpeechOutput") {
@State var chat: Chat = .init(
@Previewable @State var chat: Chat = .init(
[
ChatEntity(role: .assistant, content: "Assistant Message!")
]
)
@State var muted = false
@Previewable @State var muted = false


return NavigationStack {
Expand All @@ -144,12 +144,12 @@ extension View {
}

#Preview("ChatViewSpeechOutputDisabled") {
@State var chat: Chat = .init(
@Previewable @State var chat: Chat = .init(
[
ChatEntity(role: .assistant, content: "Assistant Message!")
]
)
@State var muted = true
@Previewable @State var muted = true


return NavigationStack {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SpeziChat/MessageInputView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public struct MessageInputView: View {

#if DEBUG
#Preview {
@State var chat = [
@Previewable @State var chat = [
ChatEntity(role: .user, content: "User Message!"),
ChatEntity(role: .hidden(type: .unknown), content: "Hidden Message!"),
ChatEntity(role: .assistant, content: "Assistant Message!")
Expand Down
5 changes: 1 addition & 4 deletions Tests/UITests/UITests.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1500;
LastUpgradeCheck = 1500;
LastUpgradeCheck = 1610;
TargetAttributes = {
2F6D139128F5F384007C25D6 = {
CreatedOnToolsVersion = 14.1;
Expand Down Expand Up @@ -445,7 +445,6 @@
2F6D13BD28F5F386007C25D6 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 637867499T;
Expand All @@ -470,7 +469,6 @@
2F6D13BE28F5F386007C25D6 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 637867499T;
Expand Down Expand Up @@ -594,7 +592,6 @@
2FB07589299DDB6000C0B37F /* Test */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 637867499T;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
LastUpgradeVersion = "1610"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down

0 comments on commit 35a0c05

Please sign in to comment.