Skip to content

Commit b381ce0

Browse files
committed
Cleanup
1 parent 3adc554 commit b381ce0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Sources/CustomAlert/Actions/MultiButton.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ import SwiftUI
2828
public var body: some View {
2929
HStack(spacing: configuration.button.spacing) {
3030
actions.first
31-
ForEach(Array(actions.dropFirst().enumerated()), id: \.offset) { _, child in
31+
ForEach(Array(actions.dropFirst().enumerated()), id: \.offset) { _, action in
3232
if !configuration.button.hideDivider {
3333
Divider()
3434
}
35-
child
35+
action
3636
}
3737
}
3838
.environment(\.isEnabled, !disabled)

Sources/CustomAlert/CustomAlertHandler+Item.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ import WindowKit
8181
ZStack {
8282
alertTitle()
8383
alertContent(item)
84-
ForEach(Array(alertActions(item).enumerated()), id: \.offset) { _, view in
85-
view
84+
ForEach(Array(alertActions(item).enumerated()), id: \.offset) { _, action in
85+
action
8686
}
8787
}
8888
.accessibilityHidden(true)

Sources/CustomAlert/CustomAlertHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ import WindowKit
8080
ZStack {
8181
alertTitle()
8282
alertContent()
83-
ForEach(Array(alertActions().enumerated()), id: \.offset) { _, view in
84-
view
83+
ForEach(Array(alertActions().enumerated()), id: \.offset) { _, action in
84+
action
8585
}
8686
}
8787
.accessibilityHidden(true)

Sources/CustomAlert/Views/CustomAlert.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ import SwiftUI
175175
Divider()
176176
}
177177
VStack(spacing: configuration.button.spacing) {
178-
ForEach(Array(actions.enumerated()), id: \.offset) { index, child in
178+
ForEach(Array(actions.enumerated()), id: \.offset) { index, action in
179179
if index != 0, !configuration.button.hideDivider {
180180
Divider()
181181
}
182-
child
182+
action
183183
}
184184
}
185185
.padding(configuration.alert.actionPadding)

0 commit comments

Comments
 (0)