Success Alert
This component shows a success alert to the user.
Property | Value |
---|---|
Interactivity | Non-required |
Screenshot
API
Example
swift
Noora().success("The project has been successfully initialized")
// With next steps
Noora().success(.alert("The project has been successfully initialized", nextSteps: [
"Run \(.command("tuist registry setup")) to speed up package resolution.",
"Cache your project targets as binaries with \(.command("tuist cache")).",
]))
Options
Attribute | Description | Required | Default value |
---|---|---|---|
message | The success message | Yes | |
next | A list of next steps that the person can take | No | [] |