Skip to content

Commit

Permalink
[~] small refactor assetlistview, removed unused alignment: .center -…
Browse files Browse the repository at this point in the history
…> center by default

[u] updated onChange iin assetlistview, old one was deprecated
  • Loading branch information
gemdev111 committed Jun 5, 2024
1 parent 1c513e7 commit 4971e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Packages/Components/Sources/AssetListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public struct AssetListItemView: View {
public var body: some View {
HStack {
imageView
HStack(alignment: .center) {
HStack {
primary
Spacer(minLength: 2)
secondary
Expand Down Expand Up @@ -180,7 +180,7 @@ public struct AssetListView: View {
}
)
}
.onChange(of: toggleValue) { newValue in
.onChange(of: toggleValue) { _, newValue in
model.action?(.enabled(newValue))
}
}
Expand Down

0 comments on commit 4971e4b

Please sign in to comment.