File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
MyLibrary/Sources/trySwiftFeature Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -30,27 +30,27 @@ public struct Acknowledgements {
30
30
public struct AcknowledgementsView : View {
31
31
32
32
@Bindable public var store : StoreOf < Acknowledgements >
33
+ public var body : some View {
34
+ List {
35
+ ForEach ( LicensesPlugin . licenses) { license in
36
+ NavigationLink ( license. name) {
37
+ VStack {
38
+ if let licenseText = license. licenseText {
39
+ ScrollView {
40
+ Text ( licenseText)
41
+ . padding ( )
42
+ }
43
+ } else {
44
+ Text ( " No License Found " )
45
+ }
46
+ }
47
+ . navigationTitle ( license. name)
48
+ }
33
49
34
- public var body : some View {
35
- List {
36
- ForEach ( LicensesPlugin . licenses) { license in
37
- NavigationStack {
38
- Group {
39
- if let licenseText = license. licenseText {
40
- ScrollView {
41
- Text ( licenseText)
42
- . padding ( )
43
- }
44
- } else {
45
- Text ( " No License Found " )
46
50
}
47
- }
48
- . navigationTitle ( license. name)
49
51
}
50
- }
52
+ . navigationTitle ( Text ( " Acknowledgements " , bundle : . module ) )
51
53
}
52
- . navigationTitle ( Text ( " Acknowledgements " , bundle: . module) )
53
- }
54
54
}
55
55
56
56
#Preview {
You can’t perform that action at this time.
0 commit comments