Skip to content

Commit

Permalink
async switch to main thread for popup wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
maerki authored Dec 20, 2024
1 parent 33d1cd7 commit de420bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/UBUserInterface/SwiftUI/Popup/UBPopupWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public struct UBPopupWrapper<V: View>: View {
}
} else {
Log.reportError("onPreferenceChange called on non-main thread")
DispatchQueue.main.sync {
DispatchQueue.main.async {
MainActor.assumeIsolated {
popupPreferenceChanged(popupPreference: popupPreference)
}
Expand Down

0 comments on commit de420bc

Please sign in to comment.