Skip to content

Commit

Permalink
Change to dispatch main
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Oct 24, 2024
1 parent c04101d commit 8634a3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"location" : "https://github.com/sentryco/SplitViewKit",
"state" : {
"branch" : "main",
"revision" : "5bb09d711f43a03699ab57caaa64538ea229f70e"
"revision" : "c04101dad75f71ec914805ad5ad2d9db687cd1c5"
}
}
],
Expand Down
20 changes: 10 additions & 10 deletions Sources/SplitViewKit/SplitViewContainer+Content.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ extension SplitViewContainer {
let _ = {
Swift.print("📐 Geometry changed: \(geometry.size) ")
}()
// let _ = {
// DispatchQueue.main.async {
// winWidth = geometry.size.width
// }
// }()
navigationSplitView()
.id(refreshID)
.onAppear {
Swift.print("✨ onAppear")
winWidth = geometry.size.width
let _ = {
DispatchQueue.main.async {
refreshID = UUID()
}
}()
navigationSplitView()
.id(refreshID)
// .onAppear {
// Swift.print("✨ onAppear")
// winWidth = geometry.size.width
// refreshID = UUID()
// }
}


Expand Down

0 comments on commit 8634a3c

Please sign in to comment.