Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Oct 24, 2024
1 parent be471ff commit 551f7da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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" : "80ab0ad4c0a990657760c19799a9495d07dd1b88"
"revision" : "be471fff8f5a8a0cdca6fb34e011e03d6e4a3b74"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion Sources/SplitViewKit/SplitViewContainer+Content.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extension SplitViewContainer {
.trackSize { oldSize, newSize in
if oldSize != newSize {
print("Size changed from \(oldSize) to \(newSize)")
// refreshID = UUID()
refreshID = UUID()
winWidth = newSize.width
} else {
Swift.print("size is the same")
Expand Down
6 changes: 3 additions & 3 deletions Sources/SplitViewKit/util/SizeTracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ struct SizeTracker: ViewModifier {
.background(
GeometryReader { geometry in
Color.clear
.onAppear {
currentSize = geometry.size
}
// .onAppear {
// currentSize = geometry.size
// }
.onChange(of: geometry.size) { oldSize, newSize in
previousSize = currentSize
currentSize = newSize
Expand Down

0 comments on commit 551f7da

Please sign in to comment.