{"id":27203242,"url":"https://github.com/sardarsaqibkhan/swiftui-onboarding","last_synced_at":"2026-04-16T00:31:23.480Z","repository":{"id":286999209,"uuid":"963236257","full_name":"SardarSaqibKhan/SwiftUI-Onboarding","owner":"SardarSaqibKhan","description":"This Demo project showcasing the implementation of onboarding screen by using tabview in swiftUI.","archived":false,"fork":false,"pushed_at":"2025-04-09T11:50:04.000Z","size":9026,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T12:28:33.426Z","etag":null,"topics":["animations","appintro","introductory","onboarding","onboarding-screen","swift","swiftui","tabview","walkthrough"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SardarSaqibKhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-09T11:18:51.000Z","updated_at":"2025-04-09T11:50:08.000Z","dependencies_parsed_at":"2025-04-09T12:39:29.641Z","dependency_job_id":null,"html_url":"https://github.com/SardarSaqibKhan/SwiftUI-Onboarding","commit_stats":null,"previous_names":["sardarsaqibkhan/swiftui-onboarding"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SardarSaqibKhan%2FSwiftUI-Onboarding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SardarSaqibKhan%2FSwiftUI-Onboarding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SardarSaqibKhan%2FSwiftUI-Onboarding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SardarSaqibKhan%2FSwiftUI-Onboarding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SardarSaqibKhan","download_url":"https://codeload.github.com/SardarSaqibKhan/SwiftUI-Onboarding/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248122697,"owners_count":21051325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animations","appintro","introductory","onboarding","onboarding-screen","swift","swiftui","tabview","walkthrough"],"created_at":"2025-04-09T22:29:13.706Z","updated_at":"2026-04-16T00:31:22.883Z","avatar_url":"https://github.com/SardarSaqibKhan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftUI-Onboarding\n\n## About\nOnboarding plays a crucial role in modern apps, helping to engage users and introduce them to key features. This demo project is built entirely with SwiftUI and showcases a clean and structured approach to implementing an onboarding experience. It serves as a helpful reference for developers looking to integrate engaging animations and user-friendly onboarding flows in their apps.\n\n## Demo\nThe video below demonstrates the onboarding experience in action:\n\n![Image of Yaktocat](./Gif/onboarding.gif)\n\n## Instructions\nUpdate `OnboardingDataModel.swift` with your data, each entry in the array will add new onboarding screen.\n\n```swift\nextension OnboardingModel {\n    static let dataSource = [\n            OnboardingModel(\n                id: 1,\n                title: \"Walking\",\n                description: \"Take your first step toward a healthier lifestyle. Walking helps improve stamina, mood, and overall well-being.\",\n                imageName: \"figure.walk\"\n            ),\n            OnboardingModel(\n                id: 2,\n                title: \"Running\",\n                description: \"Boost your endurance and stay fit with personalized running plans. Track your pace, distance, and goals.\",\n                imageName: \"figure.run\"\n            ),\n            OnboardingModel(\n                id: 3,\n                title: \"Basket Ball\",\n                description: \"Jump into fast-paced gameplay! Practice your shots, monitor performance, and level up your basketball skills.\",\n                imageName: \"figure.basketball\"\n            ),\n            OnboardingModel(\n                id: 4,\n                title: \"Archery\",\n                description: \"Focus, aim, and release! Archery helps build concentration and precision. Master the skill with guided sessions.\",\n                imageName: \"figure.archery\"\n            ),\n            OnboardingModel(\n                id: 5,\n                title: \"Badminton\",\n                description: \"Smash your way to fitness with energetic badminton drills. Track rallies, improve reaction time, and play like a pro.\",\n                imageName: \"figure.badminton\"\n            )\n    ]\n}\n\n```\n## Instructions\n landing view `OnboardingApp.swift` showing/hiding by using Userdefualt.\n\n```swift\nimport SwiftUI\n\n@main\nstruct OnboardingApp: App {\n    @AppStorage(\"hasSeenOnboardingView\") private var hasSeenOnboardingView = false\n \n    var body: some Scene {\n        WindowGroup {\n            if hasSeenOnboardingView {\n                ContentView()\n            } else {\n                OnboardingView {\n                    hasSeenOnboardingView = true \n                }\n            }\n        }\n    }\n}\n```\n\n```swift\nstruct OnboardingView: View {\n    @State private var currentPage: Int = 1\n    \n    var totalPages: Int {\n        OnboardingModel.dataSource.count\n    }\n    \n    var onBoardingDatasource: [OnboardingModel] {\n        OnboardingModel.dataSource\n    }\n    \n    var onSkip: () -\u003e Void\n    \n    var body: some View {\n        ZStack {\n            Image(\"backgroundImage\")\n                .resizable()\n                .aspectRatio(contentMode: .fill)\n                .frame(minWidth: 0, maxWidth: .infinity)\n                .edgesIgnoringSafeArea(.all)\n           \n            VStack {\n                skipButton\n                \n                onboardingTabView\n                \n                navigationButtons\n            }\n            .padding()\n        }\n        \n    }\n.\n.\n.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsardarsaqibkhan%2Fswiftui-onboarding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsardarsaqibkhan%2Fswiftui-onboarding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsardarsaqibkhan%2Fswiftui-onboarding/lists"}