APP-iOS3rd / PJ3T2_Mymory

멋쟁이사자처럼 iOS 앱스쿨 3기 팀 프로젝트
10 stars 3 forks source link

[Feat] 온보딩 뷰 #213

Closed RapidSloth closed 7 months ago

RapidSloth commented 7 months ago

PR 가이드라인

PR Checklist

PR 날릴 때 체크 리스트

PR Type

어떤 종류의 PR인가요?

연관되는 issue 정보를 알려주세요

Issue Number: N/A

PR 설명하기

어떻게 작동하나요? code 기반으로 설명해주세요

TabView(selection: $currentIndex.animation()) { 
    ForEach(Array(zip(viewModel.onboardingList.indices, viewModel.onboardingList)), id: \.0) { index, item in
        ZStack {
           Color.white
               .ignoresSafeArea()

         VStack(spacing: 15) {
            Text(item.content)
               .font(.bold20)
               .multilineTextAlignment(.center)

            Image(item.image)
               .resizable()
               .frame(width: UIScreen.main.bounds.size.height * 0.4 ,height: UIScreen.main.bounds.size.height * 0.45)
            }
        }
        .tag(index)
    }
}
.ignoresSafeArea()
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
.overlay(IndexView(numberOfPages: viewModel.onboardingList, currentIndex: $currentIndex, isFirstLaunching: $isFirstLaunching))

PageTabViewStyle의 indicator를 Custom으로 구현했습니다. overlay로 표시됩니다.


가능하다면 추가해주세요

변경 사항 스크린샷 혹은 화면 녹화

스크린샷 exfinal

기타 언급해야 할 사항들