Skip to content

Commit 76665d7

Browse files
committed
WIP
1 parent 4f60569 commit 76665d7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Sources/Introspect.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ struct IntrospectModifier<SwiftUIViewType: IntrospectableViewType, PlatformSpeci
107107
}
108108

109109
@MainActor
110-
public protocol PlatformEntity: AnyObject, Sendable {
110+
public protocol PlatformEntity: AnyObject {
111111
associatedtype Base: PlatformEntity
112112

113113
@_spi(Internals)

Sources/ViewTypes/SearchField.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#if !os(watchOS)
22
/// An abstract representation of the search field displayed via the `.searchable` modifier in SwiftUI.
33
///
4-
/// ### iOS
4+
/// ### iOS 15 - 18
55
///
66
/// ```swift
77
/// struct ContentView: View {
@@ -20,12 +20,17 @@
2020
/// }
2121
/// ```
2222
///
23+
/// ### iOS 26+
24+
///
2325
/// From iOS 26 onward, search bar is only backed by UIKit when `.searchable` is used within a
2426
/// `NavigationView` or `NavigationStack` contained inside a `TabView`.
2527
///
2628
/// If `.searchable` is used outside of these containers, it is backed by SwiftUI's own implementation,
2729
/// and there is no UIKit view to introspect.
2830
///
31+
/// The only exception to this is on iPad, where double column `NavigationView` and `NavigationSplitView`
32+
/// still use `UISearchBar` even outside of a `TabView` (for now...).
33+
///
2934
/// ```swift
3035
/// struct ContentView: View {
3136
/// @State var searchTerm = ""

Sources/ViewTypes/TabView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/// }
3434
/// ```
3535
///
36-
/// ### macOS
36+
/// ### macOS 10.15 - 14
3737
///
3838
/// ```swift
3939
/// struct ContentView: View {

0 commit comments

Comments
 (0)