Skip to content
/ Dux Public

Guide users through your SwiftUI app with coach marks

License

Notifications You must be signed in to change notification settings

jakeheis/Dux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dux

Build Status

Guide users through your SwiftUI app with coach marks.

Pre-release note

Dux has not hit 1.0.0 yet and is undergoing active development which means APIs are unstable and may change.

Installation

In Package.swift:

dependencies: [
    .package(url: "https://github.com/jakeheis/Dux", .upToNextMajor(from: "0.0.1"))
]

Usage

@main
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            DuxContainerView {
                MyView()
            }
        }
    }
}

struct MyView: View {
    enum Tags: DuxTags {
        case hello
        
        func makeCallout() -> Callout {
            .text("This is a message saying hello")
        }
    }
    
    var body: some View {
        VStack {
            Text("Hello world")
                .duxTag(Tags.hello)
        }
        .dux(isActive: true, tags: Tags.self)
    }
}

See the Examples directory for more examples of how to use Dux.

Attributions

Inspired by https://github.com/ephread/Instructions

About

Guide users through your SwiftUI app with coach marks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages