You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// FruitCardView.swiftstructFruitCardView:View{// MARK: - PROPERTY@StateprivatevarisAnimating:Bool= false
// MARK: - BODYvarbody:someView{ZStack{VStack(spacing:20){// Fruit: ImageImage("blueberry").resizable().scaledToFit().shadow(color:Color(red:0, green:0, blue:0, opacity: 0.15), radius:8, x:6, y:8)// image scale effect.scaleEffect(isAnimating ? 1.0 : 0.6)// Fruit: TitleText("Blueberry").foregroundColor(Color.white).font(.largeTitle).fontWeight(.heavy).shadow(color:Color(red:0, green:0, blue:0, opacity: 0.15), radius:2, x:2, y:2)// Fruit: HeadLineText("Blueberries are sweet, nutritious and wildy popular fruit all over the world.").foregroundColor(Color.white).multilineTextAlignment(.center).padding(.horizontal,16).frame(maxWidth:480)// Button: Start - resualbe UI ComponentStartButtonView()}//: VSTACK}//: ZSTACK// Animation onApper.onAppear{withAnimation(.easeOut(duration: 0.5)){
isAnimating = true
}}.frame(minWidth:0, maxWidth:.infinity, minHeight:0, maxHeight:.infinity, alignment:.center).background(LinearGradient(gradient:Gradient(colors:[Color("ColorBlueberryLight"),Color("ColorBlueberryDark")]), startPoint:.top, endPoint:.bottom)).cornerRadius(20).padding(20)}}
👉 OnBoardingView
// OnboardingView.swiftstructOnboardingView:View{// MARK: - BODYvarbody:someView{TabView{// Loop 로 5개의 같은 CardSection 생성하기ForEach(0..<5){ item inFruitCardView()}//: LOOP}//: TABVIEW.tabViewStyle(PageTabViewStyle())// PageTabViewStyle 로 적용됨.padding(.vertical,20)}}