mirror of
https://github.com/nicoverbruggen/NVAlert.git
synced 2025-08-06 17:20:10 +02:00
476feaa87964f7f04ead85c1c0b4623068b23b3c
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.
Example usage
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()
Languages
Swift
100%