https://github.com/aabidDevit/IntroScreen
-> Add package IntroScreen in your xcode
import SwiftUI
import IntroScreen
let introData: [IntroData] = [
IntroData(title: "Choose Products", desc: "Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit.", image: "twinlake"),
IntroData(title: "Make Payment", desc: "Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit.", image: "twinlake"),
IntroData(title: "Get Your Order", desc: "Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit.", image: "twinlake")
]
struct ContentView: View {
var body: some View {
Intro(introDataArray: introData, skipButtonTapEvent: {
}, getStartedButtonTapEvent: {
}, introTextStyle: IntroTextStyle(titleTextStyle: .init(textFont: Font.title), descTextStyle: .init(textFont: .system(.title3, weight: .regular)),skipTextStyle: .init(textColor: .pink), prevTextStyle: .init(textColor: .pink), nextTextStyle: .init(textColor: .pink), pageCountTextStyle: .init(textColor: .pink)))
}
}