[ ] A Combine publisher that pushes updates when LaunchAtLogin.isEnabled is changed.
[ ] A SwiftUI Toggle button in checkbox style that toggles LaunchAtLogin.isEnabled and also comes with the default text of "Launch at login" (however, should be changable for localization purposes).
[ ] Not SwiftUI related, but relevant still: NSMenu#launchAtLoginItem() that returns a NSMenuItem that toggles LaunchAtLogin.isEnabled when checked, uses the correct checked state, and also comes with the default text of "Launch at Login" (note it's title-cased). And a NSMenu#addLaunchAtLoginItem() convenience method.
[ ] Docs
[ ] Tests
This issue requires you to have advanced Swift knowledge.
https://developer.apple.com/tutorials/swiftui/ https://developer.apple.com/documentation/combine
LaunchAtLogin.isEnabled
is changed.Toggle
button in checkbox style that togglesLaunchAtLogin.isEnabled
and also comes with the default text of "Launch at login" (however, should be changable for localization purposes).NSMenu#launchAtLoginItem()
that returns aNSMenuItem
that togglesLaunchAtLogin.isEnabled
when checked, uses the correct checked state, and also comes with the default text of "Launch at Login" (note it's title-cased). And aNSMenu#addLaunchAtLoginItem()
convenience method.This issue requires you to have advanced Swift knowledge.