From 4971e4b61bad6a6037d0530074668eaa3d82e9ce Mon Sep 17 00:00:00 2001 From: gemdev111 Date: Wed, 5 Jun 2024 15:53:53 +0300 Subject: [PATCH] [~] small refactor assetlistview, removed unused alignment: .center -> center by default [u] updated onChange iin assetlistview, old one was deprecated --- Packages/Components/Sources/AssetListView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/Components/Sources/AssetListView.swift b/Packages/Components/Sources/AssetListView.swift index b7c9df6f..4111bd20 100644 --- a/Packages/Components/Sources/AssetListView.swift +++ b/Packages/Components/Sources/AssetListView.swift @@ -82,7 +82,7 @@ public struct AssetListItemView: View { public var body: some View { HStack { imageView - HStack(alignment: .center) { + HStack { primary Spacer(minLength: 2) secondary @@ -180,7 +180,7 @@ public struct AssetListView: View { } ) } - .onChange(of: toggleValue) { newValue in + .onChange(of: toggleValue) { _, newValue in model.action?(.enabled(newValue)) } }