Skip to content

Commit c0cbea0

Browse files
committed
Update
1 parent f905e2d commit c0cbea0

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

Sources/SwiftNEW/SwiftNEW.swift

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -149,25 +149,16 @@ public struct SwiftNEW: View {
149149
.stroke(.gray, lineWidth: 1)
150150
)
151151
}
152+
.clipShape(RoundedRectangle(cornerRadius: 19, style: .continuous))
152153
}
153154
public var headings: some View {
154-
Group {
155+
HStack {
155156
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 {
165-
VStack {
166-
appIcon
167-
.clipShape(RoundedRectangle(cornerRadius: 19))
168-
Text("What's New in").bold().font(.largeTitle)
169-
Text("Version \(Bundle.versionBuild)").bold().font(.title).foregroundColor(.secondary)
170-
}
157+
appIcon
158+
}
159+
VStack(alignment: align) {
160+
Text("What's New in").bold().font(.largeTitle)
161+
Text("Version \(Bundle.versionBuild)").bold().font(.title).foregroundColor(.secondary)
171162
}
172163
}
173164
}

0 commit comments

Comments
 (0)