Skip to content

Commit

Permalink
Fix build issue on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWDG committed Jun 2, 2024
1 parent dd37920 commit 0d55426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/OSLogViewer/OSLogViewer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public struct OSLogViewer: View {
.overlay {
if logMessages.isEmpty {
if !finishedCollecting {
if #available(iOS 17.0, *) {
if #available(iOS 17.0, macOS 14.0, *) {
ContentUnavailableView("Collecting logs...", systemImage: "hourglass")
} else {
VStack {
Expand All @@ -88,7 +88,7 @@ public struct OSLogViewer: View {
}
}
} else {
if #available(iOS 17.0, *) {
if #available(iOS 17.0, macOS 14.0, *) {
ContentUnavailableView(
"No results found",
systemImage: "magnifyingglass",
Expand Down

0 comments on commit 0d55426

Please sign in to comment.