Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
divadretlaw committed Feb 1, 2025
1 parent d9a7d0f commit faa2a95
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 David Walter (davidwalter.at)
Copyright (c) 2025 David Walter (davidwalter.at)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 6 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/divadretlaw/WindowSceneReader", from: "3.1.2")
.package(url: "https://github.com/divadretlaw/WindowReader", from: "3.0.0"),
.package(url: "https://github.com/divadretlaw/WindowSceneReader", from: "3.2.0")
],
targets: [
.target(
name: "WindowKit",
dependencies: ["WindowSceneReader"]
dependencies: [
"WindowReader",
"WindowSceneReader"
]
)
]
)
2 changes: 1 addition & 1 deletion Sources/WindowKit/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import OSLog
import UIKit

extension Logger {
#if swift(>=5.10) && swift(<6.0)
#if swift(>=5.10) && compiler(<6.0)
nonisolated(unsafe) static let main = Logger(subsystem: "at.davidwalter.WindowKit", category: "WindowKit")
#else
static let main = Logger(subsystem: "at.davidwalter.WindowKit", category: "WindowKit")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public struct WindowCoverConfiguration: Hashable, Equatable, Sendable {
var level: UIWindow.Level = .normal

var userInterfaceStyle: UIUserInterfaceStyle {
guard let colorScheme = colorScheme else {
guard let colorScheme else {
return .unspecified
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public struct WindowOverlayConfiguration: Hashable, Equatable, Sendable {
var level: UIWindow.Level = .normal

var userInterfaceStyle: UIUserInterfaceStyle {
guard let colorScheme = colorScheme else {
guard let colorScheme else {
return .unspecified
}

Expand Down

0 comments on commit faa2a95

Please sign in to comment.