File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
- // swift-tools-version:5.3
1
+ // swift-tools-version:5.7
2
2
import PackageDescription
3
3
4
4
let package = Package (
5
5
name: " LaunchAtLogin " ,
6
6
platforms: [
7
- . macOS( . v10_12 )
7
+ . macOS( . v10_13 )
8
8
] ,
9
9
products: [
10
10
. library(
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ extension LaunchAtLogin {
25
25
}
26
26
```
27
27
*/
28
- public struct Toggle < Label> : View where Label : View {
28
+ public struct Toggle < Label: View > : View {
29
29
@ObservedObject private var launchAtLogin = LaunchAtLogin . observable
30
30
private let label : Label
31
31
@@ -46,7 +46,7 @@ extension LaunchAtLogin {
46
46
}
47
47
48
48
@available ( macOS 10 . 15 , * )
49
- extension LaunchAtLogin . Toggle where Label == Text {
49
+ extension LaunchAtLogin . Toggle < Text > {
50
50
/**
51
51
Creates a toggle that generates its label from a localized string key.
52
52
@@ -67,7 +67,7 @@ extension LaunchAtLogin.Toggle where Label == Text {
67
67
- Parameters:
68
68
- title: A string that describes the purpose of the toggle.
69
69
*/
70
- public init < S > ( _ title: S ) where S : StringProtocol {
70
+ public init ( _ title: some StringProtocol ) {
71
71
label = Text ( title)
72
72
}
73
73
Original file line number Diff line number Diff line change 1
1
import AppKit
2
2
3
- // TODO: When targeting macOS 11, convert this to use `App` protocol and remove `NSPrincipalClass` in Info.plist.
4
-
5
3
final class AppDelegate : NSObject , NSApplicationDelegate {
6
4
func applicationDidFinishLaunching( _ notification: Notification ) {
7
5
let bundleIdentifier = Bundle . main. bundleIdentifier!
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ This package works with both sandboxed and non-sandboxed apps and it's App Store
8
8
9
9
## Requirements
10
10
11
- macOS 10.12 +
11
+ macOS 10.13 +
12
12
13
13
## Install
14
14
You can’t perform that action at this time.
0 commit comments