{"id":22631361,"url":"https://github.com/asam139/steps","last_synced_at":"2025-04-11T19:56:44.572Z","repository":{"id":38293646,"uuid":"254682847","full_name":"asam139/Steps","owner":"asam139","description":"Steps is a SwiftUI Wizard component that guides users through steps in a basket, cart, or any task etc.","archived":false,"fork":false,"pushed_at":"2023-09-11T23:06:42.000Z","size":502,"stargazers_count":27,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T05:40:36.550Z","etag":null,"topics":["basket","cart","guides","ios","macos","sequence","steps","subtasks","swift","swiftui","wizard","wizard-steps"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asam139.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["asam139"]}},"created_at":"2020-04-10T16:28:47.000Z","updated_at":"2024-07-12T01:35:55.000Z","dependencies_parsed_at":"2022-08-24T05:11:20.490Z","dependency_job_id":null,"html_url":"https://github.com/asam139/Steps","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asam139%2FSteps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asam139%2FSteps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asam139%2FSteps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asam139%2FSteps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asam139","download_url":"https://codeload.github.com/asam139/Steps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473111,"owners_count":21109628,"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":["basket","cart","guides","ios","macos","sequence","steps","subtasks","swift","swiftui","wizard","wizard-steps"],"created_at":"2024-12-09T02:08:36.726Z","updated_at":"2025-04-11T19:56:44.542Z","avatar_url":"https://github.com/asam139.png","language":"Swift","funding_links":["https://github.com/sponsors/asam139"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/asam139/Steps/master/Assets/logo.png\" title=\"steps\" width=\"300\"\u003e\n\u003c/p\u003e\n\n[![Build Status](https://github.com/asam139/Steps/workflows/Steps/badge.svg?branch=master)](https://github.com/asam139/Steps/actions)\n[![Platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20tvOS%20%7C%20macOS-lightgrey.svg)](https://github.com/asam139/Steps)\n[![Cocoapods](https://img.shields.io/cocoapods/v/Steps.svg)](https://cocoapods.org/pods/Steps)\n[![SPM compatible](https://img.shields.io/badge/SPM-Compatible-brightgreen.svg?style=flat)](https://swift.org/package-manager/)\n[![codecov](https://codecov.io/gh/asam139/Steps/branch/master/graph/badge.svg)](https://codecov.io/gh/asam139/Steps)\n[![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)](https://swift.org)\n[![Xcode](https://img.shields.io/badge/Xcode-11.4-blue.svg)](https://developer.apple.com/xcode)\n[![MIT](https://img.shields.io/badge/License-MIT-red.svg)](https://opensource.org/licenses/MIT)\n\nSteps is a navigation bar that guides users through the steps of a task. You need to use it when a given task is complicated or has a certain sequence in the series of subtasks, we can decompose it into several steps to make things easier.\n\n## Requirements\n\n- **iOS** 10.0+ / **tvOS** 9.0+ / **macOS** 10.10+ / **Ubuntu** 14.04+\n- Swift 5.0+\n\n## Installation\n\n\u003cdetails\u003e\n\u003csummary\u003eCocoaPods\u003c/summary\u003e\n\u003cp\u003eTo integrate Steps into your Xcode project using \u003ca href=\"http://cocoapods.org\"\u003eCocoaPods\u003c/a\u003e, specify it in your \u003ccode\u003ePodfile\u003c/code\u003e:\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode class=\"ruby language-ruby\"\u003epod 'Steps'\u003c/code\u003e\u003c/pre\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eSwift Package Manager\u003c/summary\u003e\n\u003cp\u003eYou can use \u003ca href=\"https://swift.org/package-manager\"\u003eThe Swift Package Manager\u003c/a\u003e to install \u003ccode\u003eSteps\u003c/code\u003e by adding the proper description to your \u003ccode\u003ePackage.swift\u003c/code\u003e file:\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode class=\"swift language-swift\"\u003eimport PackageDescription\n\nlet package = Package(\n    name: \"YOUR_PROJECT_NAME\",\n    targets: [],\n    dependencies: [\n        .package(url: \"https://github.com/asam139/Steps.git\", from: \"0.2.0\")\n    ]\n)\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003cp\u003eNext, add \u003ccode\u003eSteps\u003c/code\u003e to your targets dependencies like so:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"swift language-swift\"\u003e.target(\n    name: \"YOUR_TARGET_NAME\",\n    dependencies: [\n        \"Steps\",\n    ]\n),\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eThen run \u003ccode\u003eswift package update\u003c/code\u003e.\u003c/p\u003e\n\u003c/details\u003e\n\n\n\n\u003cdetails\u003e\n\u003csummary\u003eManually\u003c/summary\u003e\n\u003cp\u003eAdd the Steps project to your Xcode project\u003c/p\u003e\n\u003c/details\u003e\n\n## Example\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/asam139/Steps/master/Assets/example.gif\" title=\"stepsexample\" height=\"400\"\u003e\n\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode class=\"swift language-swift\"\u003estruct Item {\n    var title: String\n    var image: Image?\n}\n\nstruct ContentView: View {\n    @ObservedObject private var stepsState: StepsState\u003cItem\u003e\n\n    init() {\n        let items = [\n            Item(title: \"First_\", image: Image(systemName: \"wind\")),\n            Item(title: \"\"),\n            Item(title: \"Second__\", image: Image(systemName: \"tornado\")),\n            Item(title: \"\"),\n            Item(title: \"Fifth_____\", image: Image(systemName: \"hurricane\"))\n        ]\n        stepsState = StepsState(data: items)\n    }\n\n    func onCreateStep(_ item: Item) -\u003e Step {\n        return Step(title: item.title, image: item.image)\n    }\n\n    var body: some View {\n        VStack(spacing: 12) {\n            Steps(state: stepsState, onCreateStep:onCreateStep)\n                .itemSpacing(10)\n                .font(.caption)\n                .padding()\n\n            Button(action: {\n                self.stepsState.nextStep()\n            }) {\n                Text(\"Next\")\n            }\n            .disabled(!stepsState.hasNext)\n            Button(action: {\n                self.stepsState.previousStep()\n            }) {\n                Text(\"Previous\")\n            }\n            .disabled(!stepsState.hasPrevious)\n        }.padding()\n    }\n}\u003c/code\u003e\u003c/pre\u003e\n\n\n## Get involved\n\nWe want your feedback.\nPlease refer to [contributing guidelines](https://github.com/asam139/Steps/tree/master/CONTRIBUTING.md) before participating.\n\n## Thanks\n\nSpecial thanks to:\n\n- Hoping new contributors\n\n## License\n\nSteps is released under the MIT license. See [LICENSE](https://github.com/asam139/Steps/blob/master/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasam139%2Fsteps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasam139%2Fsteps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasam139%2Fsteps/lists"}