From 5d7abb6f16561f1b41b85cadc9d5b2aa32914c3e Mon Sep 17 00:00:00 2001 From: Alexander Romanov Date: Tue, 5 Sep 2023 00:04:50 +0300 Subject: [PATCH] Fix photo icons #patch --- Sources/OversizePhotoKit/PhotoOptionsView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/OversizePhotoKit/PhotoOptionsView.swift b/Sources/OversizePhotoKit/PhotoOptionsView.swift index 0f41b44..8c4434f 100644 --- a/Sources/OversizePhotoKit/PhotoOptionsView.swift +++ b/Sources/OversizePhotoKit/PhotoOptionsView.swift @@ -48,7 +48,7 @@ public struct PhotoOptionsView: View where A: View { Row("Photo", subtitle: date?.formatted(date: .long, time: .omitted)) { image } - .rowContentInset(.init(horizontal: .zero, vertical: .xSmall)) + .rowContentMargins(.init(horizontal: .zero, vertical: .xSmall)) } .trailingBar { BarButton(.close) } .backgroundSecondary() @@ -72,7 +72,7 @@ public struct PhotoOptionsView: View where A: View { ) ) { Row("Share") { - Icon(Icons.Base.upload) + Image.Base.upload } } } @@ -81,7 +81,7 @@ public struct PhotoOptionsView: View where A: View { } .buttonStyle(.row) } - .surfaceContentRowInsets() + .surfaceContentRowMargins() if deleteAction != nil { SectionView { @@ -92,7 +92,7 @@ public struct PhotoOptionsView: View where A: View { .multilineTextAlignment(.center) } } - .surfaceContentRowInsets() + .surfaceContentRowMargins() } } .padding(.top, -16)