mirror of
https://github.com/nicoverbruggen/NVAlert.git
synced 2025-08-07 09:40:08 +02:00
Initial commit
This commit is contained in:
23
README.md
Normal file
23
README.md
Normal file
@ -0,0 +1,23 @@
|
||||
# NVAlert Package
|
||||
|
||||
**Important**: 👷♂️ This package is currently **under construction**, and may change at any time.
|
||||
|
||||
## What is this?
|
||||
|
||||
This is a package that helps you present larger alerts (with more text) for macOS, if you dislike the smaller alerts introduced in more recent versions of macOS.
|
||||
|
||||
Since PHP Monitor displays many helpful prompts, I wanted something a little bit more robust than the default alerts which ship with macOS.
|
||||
|
||||
This was originally written as part of my "zero non first-party dependencies" policy for [PHP Monitor](https://github.com/nicoverbruggen/phpmon).
|
||||
|
||||
## Example usage
|
||||
|
||||
```swift
|
||||
NVAlert().withInformation(
|
||||
title: NSLocalizedString("lite_mode_explanation.title", nil),
|
||||
subtitle: NSLocalizedString("lite_mode_explanation.subtitle", nil),
|
||||
description: NSLocalizedString("lite_mode_explanation.description", nil)
|
||||
)
|
||||
.withPrimary(text: NSLocalizedString("generic.ok", nil))
|
||||
.show()
|
||||
```
|
Reference in New Issue
Block a user