Skip to content

Commit

Permalink
👍 redesign contentview
Browse files Browse the repository at this point in the history
  • Loading branch information
touyou committed Jul 9, 2022
1 parent 35b56e5 commit 9811f0b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions VisionReceipt/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ struct ContentView: View {
List {
Section("読み取り済みレシート") {
ForEach(receiptDatas) { receipt in
NavigationLink(destination:
ScrollView {
VStack(alignment: .center, spacing: 8) {
Text("読み取られた金額 ¥\(receipt.totalCost())")
NavigationLink(destination: List {
HStack(alignment: .firstTextBaseline) {
Text("読み取られた金額")
.font(.body)
Spacer()
Text("¥\(receipt.totalCost())")
.font(.title.bold())
Text(receipt.entireString)
.textSelection(.enabled)
}
.padding()
Text(receipt.entireString)
.textSelection(.enabled)
}, label: {
HStack {
Text(receipt.name).lineLimit(1)
Expand Down

0 comments on commit 9811f0b

Please sign in to comment.