File tree Expand file tree Collapse file tree 5 files changed +51
-1
lines changed
HarbourWidgets/Assets.xcassets
RecessedWidgetBackground.colorset
WidgetBackground.colorset
Extensions/SwiftUI/iOS 26 Expand file tree Collapse file tree 5 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import SwiftUI
10
10
11
+ #if os(iOS)
11
12
extension ToolbarContent {
12
13
@ToolbarContentBuilder @inlinable
13
14
func _matchedTransitionSource( id: some Hashable , in namespace: Namespace . ID ) -> some ToolbarContent {
14
- if #available( iOS 26 . 0 , macOS 26 . 0 , * ) {
15
+ if #available( iOS 26 . 0 , * ) {
15
16
self
16
17
. matchedTransitionSource ( id: id, in: namespace)
17
18
} else {
18
19
self
19
20
}
20
21
}
21
22
}
23
+ #endif
Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ struct ContainersView: View {
81
81
. animation ( . default, value: viewModel. isStatusProgressViewVisible)
82
82
// .animation(.default, value: portainerStore.removedContainerIDs)
83
83
. navigationTitle ( navigationTitle)
84
+ #if os(iOS)
84
85
. navigationBarTitleDisplayMode( . inline)
86
+ #endif
85
87
. environment( viewModel)
86
88
. onKeyPress ( action: onKeyPress)
87
89
. onChange ( of: sceneDelegate. selectedStackNameForContainersView) { _, stackName in
@@ -198,7 +200,9 @@ private extension ContainersView {
198
200
}
199
201
. labelStyle ( . titleAndIcon)
200
202
}
203
+ #if os(iOS)
201
204
. _matchedTransitionSource( id: SettingsView . id, in: namespace)
205
+ #endif
202
206
203
207
#if os(iOS)
204
208
if horizontalSizeClass == . regular {
Original file line number Diff line number Diff line change @@ -183,7 +183,9 @@ private extension StacksView {
183
183
}
184
184
. disabled ( !portainerStore. isSetup)
185
185
}
186
+ #if os(iOS)
186
187
. _matchedTransitionSource( id: CreateStackView . id, in: namespace)
188
+ #endif
187
189
188
190
ToolbarItem ( placement: . automatic) {
189
191
Menu {
@@ -231,7 +233,9 @@ private extension StacksView {
231
233
}
232
234
. labelStyle ( . titleAndIcon)
233
235
}
236
+ #if os(iOS)
234
237
. _matchedTransitionSource( id: SettingsView . id, in: namespace)
238
+ #endif
235
239
236
240
// ToolbarItem(placement: .status) {
237
241
// DelayedView(isVisible: viewModel.isStatusProgressViewVisible) {
Original file line number Diff line number Diff line change 24
24
}
25
25
},
26
26
"idiom" : " universal"
27
+ },
28
+ {
29
+ "color" : {
30
+ "platform" : " osx" ,
31
+ "reference" : " alternatingContentBackgroundColor"
32
+ },
33
+ "idiom" : " mac"
34
+ },
35
+ {
36
+ "appearances" : [
37
+ {
38
+ "appearance" : " luminosity" ,
39
+ "value" : " dark"
40
+ }
41
+ ],
42
+ "color" : {
43
+ "platform" : " osx" ,
44
+ "reference" : " underPageBackgroundColor"
45
+ },
46
+ "idiom" : " mac"
27
47
}
28
48
],
29
49
"info" : {
Original file line number Diff line number Diff line change 19
19
"reference" : " systemBackgroundColor"
20
20
},
21
21
"idiom" : " universal"
22
+ },
23
+ {
24
+ "color" : {
25
+ "platform" : " osx" ,
26
+ "reference" : " windowBackgroundColor"
27
+ },
28
+ "idiom" : " mac"
29
+ },
30
+ {
31
+ "appearances" : [
32
+ {
33
+ "appearance" : " luminosity" ,
34
+ "value" : " dark"
35
+ }
36
+ ],
37
+ "color" : {
38
+ "platform" : " osx" ,
39
+ "reference" : " windowBackgroundColor"
40
+ },
41
+ "idiom" : " mac"
22
42
}
23
43
],
24
44
"info" : {
You can’t perform that action at this time.
0 commit comments