From fd995793d2817abbbb13c282ced4a304f3b966f1 Mon Sep 17 00:00:00 2001 From: hryeong66 Date: Sat, 27 Jul 2024 14:12:17 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20ststus=20bar=20=EB=B6=80=EB=B6=84=20=EB=B8=94?= =?UTF-8?q?=EB=9F=AC=20=EC=B2=98=EB=A6=AC=20=EC=B6=94=EA=B0=80=20(#51)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Features/MyPage/Sources/MyPageView.swift | 50 +++++++++++-------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/Projects/Features/MyPage/Sources/MyPageView.swift b/Projects/Features/MyPage/Sources/MyPageView.swift index c673053..ad477f7 100644 --- a/Projects/Features/MyPage/Sources/MyPageView.swift +++ b/Projects/Features/MyPage/Sources/MyPageView.swift @@ -18,27 +18,35 @@ public struct MyPageView: View { } public var body: some View { - ScrollView { - MyPagePregressView(isRefreshCompleted: $viewModel.state.isRefreshCompleted) - levelView - divider - RecentlyMemeListView( - memeDetailList: $viewModel.state.lastSeenMemeList, - memeClickHandler: viewModel.handler.memeClickHandler - ) - SavedMemeListView( - memeDetailList: $viewModel.state.savedMemeList, - memeClickHandler: viewModel.handler.memeClickHandler, - memeCopyHandler: viewModel.handler.memeCopyHandler, - onAppearLastMemeHandler: viewModel.handler.onAppearLastMemeHandler - ) - Spacer(minLength: 80) - } - .onAppear { - viewModel.dispatch(type: .onAppearMyPageView) - } - .refreshable { - viewModel.dispatch(type: .pullToRefresh) + ZStack(alignment: .top) { + Rectangle() + .frame(height: 51) + .foregroundStyle(Color.clear) + .background(.ultraThinMaterial) + .blur(radius: 0) + .zIndex(1) + ScrollView { + MyPagePregressView(isRefreshCompleted: $viewModel.state.isRefreshCompleted) + levelView + divider + RecentlyMemeListView( + memeDetailList: $viewModel.state.lastSeenMemeList, + memeClickHandler: viewModel.handler.memeClickHandler + ) + SavedMemeListView( + memeDetailList: $viewModel.state.savedMemeList, + memeClickHandler: viewModel.handler.memeClickHandler, + memeCopyHandler: viewModel.handler.memeCopyHandler, + onAppearLastMemeHandler: viewModel.handler.onAppearLastMemeHandler + ) + Spacer(minLength: 80) + } + .onAppear { + viewModel.dispatch(type: .onAppearMyPageView) + } + .refreshable { + viewModel.dispatch(type: .pullToRefresh) + } } .background { gradientBackgroundView