diff --git a/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsView.swift b/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsView.swift index 19344c499..41ec8dbc8 100644 --- a/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsView.swift +++ b/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsView.swift @@ -41,7 +41,7 @@ struct ExpenseDetailsView: View { } } - if let note = viewModel.expense?.note { + if let note = viewModel.expense?.note, !note.isEmpty { ExpenseDetailsNoteView(note: note, handleNoteTap: viewModel.handleNoteTap) } diff --git a/Splito/UI/Home/Expense/Notes/ExpenseAddNoteView.swift b/Splito/UI/Home/Expense/Notes/ExpenseAddNoteView.swift index 15a2fc453..8bfab728f 100644 --- a/Splito/UI/Home/Expense/Notes/ExpenseAddNoteView.swift +++ b/Splito/UI/Home/Expense/Notes/ExpenseAddNoteView.swift @@ -18,13 +18,19 @@ struct ExpenseAddNoteView: View { var body: some View { VStack(alignment: .leading, spacing: 8) { - TextEditor(text: $tempNote) + TextField("", text: $tempNote, prompt: Text(""), axis: .vertical) .font(.subTitle2()) .foregroundStyle(primaryText) .lineSpacing(3) .padding(16) - .frame(maxWidth: .infinity, minHeight: 50, maxHeight: .infinity) + .cornerRadius(12) .focused($isFocused) + .overlay { + RoundedRectangle(cornerRadius: 12) + .stroke(outlineColor, lineWidth: 1) + } + + Spacer() } .padding(16) .frame(maxWidth: isIpad ? 600 : nil, alignment: .center)