We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73728d1 + 85fc393 commit 49cd857Copy full SHA for 49cd857
Sources/LicenseList/LicenseView.swift
@@ -18,19 +18,14 @@ public struct LicenseView: View {
18
}
19
20
public var body: some View {
21
- GeometryReader { geometry in
22
- ScrollView {
23
- Text(attributedLicenseBody)
24
- .font(.caption)
25
- .padding()
26
- .frame(width: geometry.size.width)
27
- .padding(.leading, geometry.safeAreaInsets.leading)
28
- .padding(.trailing, geometry.safeAreaInsets.trailing)
29
- .onAppear {
30
- attributedLicenseBody = attribute(library.licenseBody)
31
- }
32
33
- .ignoresSafeArea(edges: .horizontal)
+ ScrollView {
+ Text(attributedLicenseBody)
+ .font(.caption)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .padding()
+ .onAppear {
+ attributedLicenseBody = attribute(library.licenseBody)
+ }
34
35
.navigationBarTitle(library.name)
36
0 commit comments