From 0d55426d903abe53433ecb131b1200cc95008fab Mon Sep 17 00:00:00 2001 From: Wesley de Groot Date: Sun, 2 Jun 2024 12:40:50 +0200 Subject: [PATCH] Fix build issue on MacOS --- Sources/OSLogViewer/OSLogViewer.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/OSLogViewer/OSLogViewer.swift b/Sources/OSLogViewer/OSLogViewer.swift index 2bd95282..21cbd110 100644 --- a/Sources/OSLogViewer/OSLogViewer.swift +++ b/Sources/OSLogViewer/OSLogViewer.swift @@ -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 { @@ -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",