Skip to content

Commit

Permalink
Added border to note editor
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-nirali-s committed Nov 27, 2024
1 parent 9e5b4cc commit 9ef3a9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
10 changes: 8 additions & 2 deletions Splito/UI/Home/Expense/Notes/ExpenseAddNoteView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ef3a9b

Please sign in to comment.