Skip to content

Commit f8a17a9

Browse files
committed
Mark Variables with @ViewBuilder
Adds the @ViewBuilder attribute to a few unmarked properties.
1 parent a23cb09 commit f8a17a9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Sources/WelcomeWindow/Views/RecentsListView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public struct RecentsListView: View {
3737
focusedField == .recentProjects
3838
}
3939

40+
@ViewBuilder
4041
private var listEmptyView: some View {
4142
VStack {
4243
Spacer()

Sources/WelcomeWindow/Views/WelcomeView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public struct WelcomeView<SubtitleView: View>: View {
6464
}
6565
}
6666

67+
@ViewBuilder
6768
private var mainContent: some View {
6869
VStack(spacing: 0) {
6970
Spacer().frame(height: 32)
@@ -153,6 +154,7 @@ public struct WelcomeView<SubtitleView: View>: View {
153154
}
154155
}
155156

157+
@ViewBuilder
156158
private var dismissButton: some View {
157159
Button(action: dismissWindow) {
158160
Image(systemName: "xmark.circle.fill")

Sources/WelcomeWindow/Views/WelcomeWindowView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public struct WelcomeWindowView<RecentsView: View, SubtitleView: View>: View {
9595
// Initial focus
9696
focusedField = .recentProjects
9797
}
98-
9998
.onDrop(of: [.fileURL], isTargeted: .constant(true)) { providers in
10099
NSApp.activate(ignoringOtherApps: true)
101100
providers.forEach {

0 commit comments

Comments
 (0)