Skip to content

Commit

Permalink
Updating the minimum supported version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmkskn committed Sep 13, 2023
1 parent 09e4c4e commit b2b6ddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PackageDescription
let package = Package(
name: "Events",
platforms: [
.macOS(.v10_15)
.macOS(.v11)
],
products: [
.library(
Expand Down
4 changes: 2 additions & 2 deletions Sources/Events/EventMonitoringModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SwiftUI

// MARK: - EventMonitoringModifier

@available(macOS 10.15, *)
@available(macOS 11, *)
fileprivate struct EventMonitoringModifier: ViewModifier {

// MARK: ViewModel
Expand Down Expand Up @@ -58,7 +58,7 @@ fileprivate extension EventMonitoringModifier {
// MARK: - View + EventMonitoringModifier


@available(macOS 10.15, *)
@available(macOS 11, *)
public extension View {
func onEvent(_ type: NSEvent.EventTypeMask, perform action: @escaping (NSEvent) -> NSEvent?) -> some View {
modifier(EventMonitoringModifier(type: type, action: action))
Expand Down

0 comments on commit b2b6ddc

Please sign in to comment.