Skip to content

Commit

Permalink
Fix compilation on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Aug 10, 2024
1 parent af619d8 commit 46bea40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import SwiftUI
import Pulse

@available(iOS 15, visionOS 1.0, *)
@available(iOS 15, macOS 13, visionOS 1, *)
struct ConsoleMessageDetailsView: View {
let message: LoggerMessageEntity

Expand Down Expand Up @@ -55,7 +55,7 @@ struct ConsoleMessageDetailsView: View {
}

#if DEBUG
@available(iOS 15, visionOS 1.0, *)
@available(iOS 15, macOS 13, visionOS 1, *)
struct ConsoleMessageDetailsView_Previews: PreviewProvider {
static var previews: some View {
NavigationView {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import SwiftUI
import Pulse

@available(iOS 15, visionOS 1.0, *)
@available(iOS 15, macOS 13, visionOS 1, *)
struct ConsoleMessageMetadataView: View {
let message: LoggerMessageEntity

Expand Down Expand Up @@ -50,7 +50,7 @@ private extension String {
}

#if DEBUG
@available(iOS 15, visionOS 1.0, *)
@available(iOS 15, macOS 13, visionOS 1, *)
struct ConsoleMessageMetadataView_Previews: PreviewProvider {
static var previews: some View {
NavigationView {
Expand Down
4 changes: 3 additions & 1 deletion Sources/PulseUI/Helpers/Components.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
// Copyright (c) 2020-2024 Alexander Grebenyuk (github.com/kean).

import SwiftUI
import Pulse

struct Components {
@available(iOS 15, macOS 13, visionOS 1.0, *)
@available(iOS 15, macOS 13, visionOS 1, *)
static func makeSessionPicker(selection: Binding<Set<UUID>>) -> some View {
SessionPickerView(selection: selection)
}
Expand All @@ -14,6 +15,7 @@ struct Components {
RichTextView(viewModel: .init(string: string))
}

@available(iOS 15, macOS 13, visionOS 1, *)
static func makeConsoleEntityCell(entity: NSManagedObject) -> some View {
ConsoleEntityCell(entity: entity)
}
Expand Down

0 comments on commit 46bea40

Please sign in to comment.