File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public struct SwiftNEW: View {
7979 VStack ( alignment: align) {
8080 Spacer ( )
8181
82- heading
82+ headings
8383
8484 Spacer ( )
8585
@@ -150,27 +150,29 @@ public struct SwiftNEW: View {
150150 )
151151 }
152152 }
153- public var heading : some View {
154- if align == . leading {
155- HStack {
156- appIcon
157- . clipShape ( RoundedRectangle ( cornerRadius: 19 ) )
153+ public var headings : some View {
154+ Group {
155+ if align == . leading {
156+ HStack {
157+ appIcon
158+ . clipShape ( RoundedRectangle ( cornerRadius: 19 ) )
159+ VStack {
160+ Text ( " What's New in " ) . bold ( ) . font ( . largeTitle)
161+ Text ( " Version \( Bundle . versionBuild) " ) . bold ( ) . font ( . title) . foregroundColor ( . secondary)
162+ }
163+ }
164+ } else {
158165 VStack {
166+ appIcon
167+ . clipShape ( RoundedRectangle ( cornerRadius: 19 ) )
159168 Text ( " What's New in " ) . bold ( ) . font ( . largeTitle)
160169 Text ( " Version \( Bundle . versionBuild) " ) . bold ( ) . font ( . title) . foregroundColor ( . secondary)
161170 }
162171 }
163- } else {
164- VStack {
165- appIcon
166- . clipShape ( RoundedRectangle ( cornerRadius: 19 ) )
167- Text ( " What's New in " ) . bold ( ) . font ( . largeTitle)
168- Text ( " Version \( Bundle . versionBuild) " ) . bold ( ) . font ( . title) . foregroundColor ( . secondary)
169- }
170172 }
171173 }
172174#elseif os(macOS)
173- public var heading : some View {
175+ public var headings : some View {
174176 VStack {
175177 Text ( " What's New in " ) . bold ( ) . font ( . largeTitle)
176178 Text ( " Version \( Bundle . versionBuild) " ) . bold ( ) . font ( . title) . foregroundColor ( . secondary)
You can’t perform that action at this time.
0 commit comments