Skip to content

Commit fe1c59e

Browse files
committed
Drop support for macOS 10.12
It’s no longer supported by Xcode.
1 parent 05168c0 commit fe1c59e

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version:5.7
22
import PackageDescription
33

44
let package = Package(
55
name: "LaunchAtLogin",
66
platforms: [
7-
.macOS(.v10_12)
7+
.macOS(.v10_13)
88
],
99
products: [
1010
.library(

Sources/LaunchAtLogin/Toggle.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extension LaunchAtLogin {
2525
}
2626
```
2727
*/
28-
public struct Toggle<Label>: View where Label: View {
28+
public struct Toggle<Label: View>: View {
2929
@ObservedObject private var launchAtLogin = LaunchAtLogin.observable
3030
private let label: Label
3131

@@ -46,7 +46,7 @@ extension LaunchAtLogin {
4646
}
4747

4848
@available(macOS 10.15, *)
49-
extension LaunchAtLogin.Toggle where Label == Text {
49+
extension LaunchAtLogin.Toggle<Text> {
5050
/**
5151
Creates a toggle that generates its label from a localized string key.
5252

@@ -67,7 +67,7 @@ extension LaunchAtLogin.Toggle where Label == Text {
6767
- Parameters:
6868
- title: A string that describes the purpose of the toggle.
6969
*/
70-
public init<S>(_ title: S) where S: StringProtocol {
70+
public init(_ title: some StringProtocol) {
7171
label = Text(title)
7272
}
7373

Sources/LaunchAtLoginHelper/main.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import AppKit
22

3-
// TODO: When targeting macOS 11, convert this to use `App` protocol and remove `NSPrincipalClass` in Info.plist.
4-
53
final class AppDelegate: NSObject, NSApplicationDelegate {
64
func applicationDidFinishLaunching(_ notification: Notification) {
75
let bundleIdentifier = Bundle.main.bundleIdentifier!

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This package works with both sandboxed and non-sandboxed apps and it's App Store
88

99
## Requirements
1010

11-
macOS 10.12+
11+
macOS 10.13+
1212

1313
## Install
1414

0 commit comments

Comments
 (0)