From 53841818b47a5377068c74f067b88a76dc688497 Mon Sep 17 00:00:00 2001 From: leemhyungyu Date: Wed, 4 Sep 2024 20:48:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ProfileImageUploadView=20WithPerceptionT?= =?UTF-8?q?racking=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProfileImageUploadView.swift | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/Projects/Feature/ProfileSetup/Interface/Sources/ProfileImageUpload/ProfileImageUploadView.swift b/Projects/Feature/ProfileSetup/Interface/Sources/ProfileImageUpload/ProfileImageUploadView.swift index b38bd763..e2f845f7 100644 --- a/Projects/Feature/ProfileSetup/Interface/Sources/ProfileImageUpload/ProfileImageUploadView.swift +++ b/Projects/Feature/ProfileSetup/Interface/Sources/ProfileImageUpload/ProfileImageUploadView.swift @@ -23,35 +23,37 @@ public struct ProfileImageUploadView: View { } public var body: some View { - ScrollView { - VStack(spacing: 0.0) { - titleView - - PhotosPicker( - selection: $selectedItems, - maxSelectionCount: 1, - matching: .images - ) { - imagePickerButton - .frame(height: UIScreen.main.bounds.width - 16.0 * 2) - .padding(.bottom, .md) - } - .onChange(of: selectedItems) { item in - handleSelectedPhotos(item) + WithPerceptionTracking { + ScrollView { + VStack(spacing: 0.0) { + titleView + + PhotosPicker( + selection: $selectedItems, + maxSelectionCount: 1, + matching: .images + ) { + imagePickerButton + .frame(height: UIScreen.main.bounds.width - 16.0 * 2) + .padding(.bottom, .md) + } + .onChange(of: selectedItems) { item in + handleSelectedPhotos(item) + } + + doneButton } - - doneButton + .padding(.bottom, .xl) } - .padding(.bottom, .xl) - } - .padding(.horizontal, .md) - .setNavigationBar { - makeNaivgationleftButton { - store.send(.backButtonDidTapped) + .padding(.horizontal, .md) + .setNavigationBar { + makeNaivgationleftButton { + store.send(.backButtonDidTapped) + } } + .scrollIndicators(.hidden) + .toolbar(.hidden, for: .bottomBar) } - .scrollIndicators(.hidden) - .toolbar(.hidden, for: .bottomBar) } }