mirror of
https://github.com/kean/Pulse.git
synced 2026-05-30 21:07:33 +00:00
27 lines
593 B
Swift
27 lines
593 B
Swift
// The MIT License (MIT)
|
|
//
|
|
// Copyright (c) 2020-2024 Alexander Grebenyuk (github.com/kean).
|
|
|
|
import Foundation
|
|
import Pulse
|
|
import SwiftUI
|
|
import CoreData
|
|
import Combine
|
|
|
|
#if os(iOS) || os(macOS) || os(visionOS)
|
|
|
|
@available(iOS 15, macOS 13, visionOS 1.0, *)
|
|
struct SessionPickerView: View {
|
|
@Binding var selection: Set<UUID>
|
|
|
|
var body: some View {
|
|
SessionListView(selection: $selection, sharedSessions: .constant(nil))
|
|
#if os(iOS) || os(visionOS)
|
|
.environment(\.editMode, .constant(.active))
|
|
.inlineNavigationTitle("Sessions")
|
|
#endif
|
|
}
|
|
}
|
|
|
|
#endif
|