File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Sources/OpenSwiftUI/Integration/Hosting/UIKit/View Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,6 @@ class ViewController: NSViewController {
66
66
67
67
struct ContentView : View {
68
68
var body : some View {
69
- Color ( uiColor : . red )
69
+ AppearanceActionModifierExample ( )
70
70
}
71
71
}
Original file line number Diff line number Diff line change @@ -596,8 +596,14 @@ extension _UIHostingView: ViewRendererHost {
596
596
597
597
package func requestUpdate( after: Double ) {
598
598
// TODO
599
+ requestImmediateUpdate ( )
599
600
}
600
-
601
+
602
+ func requestImmediateUpdate( ) {
603
+ // FIXME
604
+ setNeedsLayout ( )
605
+ }
606
+
601
607
package func outputsDidChange( outputs: ViewGraph . Outputs ) {
602
608
// TODO
603
609
}
@@ -609,11 +615,7 @@ extension _UIHostingView: ViewRendererHost {
609
615
package func rootTransform( ) -> ViewTransform {
610
616
preconditionFailure ( " TODO " )
611
617
}
612
-
613
- public func graphDidChange( ) {
614
- // TODO
615
- }
616
-
618
+
617
619
public func preferencesDidChange( ) {
618
620
// TODO
619
621
}
You can’t perform that action at this time.
0 commit comments