Swiftpack.co -  Clipy/LoginServiceKit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Clipy/LoginServiceKit
Easy manage login items for macOS. Not support Sandbox application.
.package(url: "https://github.com/Clipy/LoginServiceKit.git", from: "v2.2.1")

LoginServiceKit

CI Release version License: Apache-2.0 Carthage compatible SPM supported

Easy manage login items in macOS.

Usage

CocoaPods

pod 'LoginServiceKit', :git => 'https://github.com/Clipy/LoginServiceKit'

Carthage

github "Clipy/LoginServiceKit"

Example

Check exist login item

let isExistLoginItem = LoginServiceKit.isExistLoginItems() // default Bundle.main.bundlePath

or

let isExistLoginItem = LoginServiceKit.isExistLoginItems(at: Bundle.main.bundlePath)

Add login item

LoginServiceKit.addLoginItems() // default Bundle.main.bundlePath

or

LoginServiceKit.addLoginItems(at: Bundle.main.bundlePath)

Remove login item

LoginServiceKit.removeLoginItems() // default Bundle.main.bundlePath

or

LoginServiceKit.removeLoginItems(at: Bundle.main.bundlePath)

About Deprecated APIs

LoginServiceKit uses an API that has been deprecated since macOS 10.11 El Capitan. However, there is no API migration destination that meets the current specifications. Therefore, this library will be discontinued when the API used is discontinued.

See this issue for more details.

GitHub

link
Stars: 83
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

v2.2.1
8 weeks ago

Bugfixes

  • Fix crash when adding to login items on macOS 11 and above. ( #26 )

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API