Skip to content

Commit

Permalink
Fixed Alignment in Information Modal Sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
g-cqd committed Feb 11, 2024
1 parent 2d7ff51 commit fc913d0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Cami/View/InformationModalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,21 @@ struct InformationModalView: View {
ScrollView(.vertical) {
VStack(alignment: .leading, spacing: 16) {
ForEach(searchResult) { result in
HStack {
VStack(alignment: .leading, spacing: 8) {
VStack(alignment: .leading, spacing: 8) {
HStack {
Text(result.title)
.font(.title2)
.fontWeight(.bold)
Spacer()
}
HStack {
Text(result.description)
Spacer()
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
Spacer()
}
.lineLimit(nil)
.multilineTextAlignment(.leading)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding()
.background(.regularMaterial)
.clipShape(RoundedRectangle(cornerRadius: 12))
Expand Down

0 comments on commit fc913d0

Please sign in to comment.