Skip to content
Merged
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
10 changes: 9 additions & 1 deletion AIProject/iCo/Features/Base/ReportSectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct ReportSectionView<Value, Trailing: View, Content: View>: View {
}

var body: some View {
VStack(alignment: .leading, spacing: 16) {
VStack(alignment: .leading, spacing: 8) {
// Header
HStack {
Image(systemName: data.icon)
Expand All @@ -91,6 +91,13 @@ struct ReportSectionView<Value, Trailing: View, Content: View>: View {
data.onCancel()
}
case .success(let value):
if !(Trailing.self == EmptyView.self) {
Text(String.aiGeneratedContentNotice)
.font(.ico11)
.foregroundStyle(.iCoNeutral)
.lineSpacing(5)
}

content(value)
.font(.ico14)
.foregroundStyle(.iCoLabel)
Expand All @@ -102,6 +109,7 @@ struct ReportSectionView<Value, Trailing: View, Content: View>: View {
TimestampWithRefreshButtonView(timestamp: ts) {
data.onRetry()
}
.padding(.top, 2)
}
case .cancel(let error):
DefaultProgressView(status: .cancel, message: error.localizedDescription) {
Expand Down
5 changes: 0 additions & 5 deletions AIProject/iCo/Features/Dashboard/View/AIBriefingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ struct AIBriefingView: View {
.foregroundStyle($0.sentiment.color(for: themeManager.selectedTheme))
},
content: {
Text(String.aiGeneratedContentNotice)
.font(.ico11)
.foregroundStyle(.iCoNeutral)
.lineSpacing(5)

Text($0.summary.byCharWrapping)
}
)
Expand Down