Skip to content

Commit 41b7721

Browse files
change sumodal content alignment
1 parent cb4a6fb commit 41b7721

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Examples/DemosApp/DemosApp/ComponentsPreview/Helpers/ModalPreview+Helpers.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ Enim habitant laoreet inceptos scelerisque senectus, tellus molestie ut. Eros ri
194194
HStack {
195195
Text(self.headerTitle)
196196
.font(self.headerFont.font)
197+
Spacer()
197198
}
198199
} else {
199200
EmptyView()
@@ -211,6 +212,7 @@ Enim habitant laoreet inceptos scelerisque senectus, tellus molestie ut. Eros ri
211212
}
212213
}
213214
.font(self.bodyFont.font)
215+
.multilineTextAlignment(.leading)
214216
}
215217

216218
static func suFooter(

Sources/ComponentsKit/Components/Modal/SwiftUI/ModalContent.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ struct ModalContent<VM: ModalVM, Header: View, Body: View, Footer: View>: View {
2424
}
2525

2626
var body: some View {
27-
VStack(
28-
alignment: .leading,
29-
spacing: self.model.contentSpacing
30-
) {
27+
VStack(spacing: self.model.contentSpacing) {
3128
self.contentHeader()
3229
.observeSize {
3330
self.headerSize = $0

0 commit comments

Comments
 (0)