Popovers
Popovers copied to clipboard
Bound preference ContentFrameReaderPreferenceKey tried to update multiple times per frame.
I've seen this when using a ScrollView
sometimes. It's probably due to this code:
https://github.com/aheze/Popovers/blob/499954f2dcad9167ac01ee3051f7fbd00d3f6fd2/Sources/PopoverUtilities.swift#L28-L43
I tried to fix it with the DispatchQueue.main.async { }
, but apparently that didn't work completely. However it's really just console noise and shouldn't actually crash your app, so it's lower priority. I'll look into it though.
Adding popover to the list will cause the refresh of the list to stutter and drop frames
Could have something to do with the WindowReader
How to try and optimize this type of problem
I’m not sure. But I’m currently trying to debug the dismissal and positioning transactions. That could be related
ZStack{
Button(action: {
present.toggle()
}, label: {
menuButton(onOf: present)
.onChange(of: present, perform: {
value in
selectedRow = value
})
})
.onChange(of: present, perform: {
value in
//以防万一,确保异步延迟在操作一次,防止显示弹出框时未找到任何窗口
DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) {
present_t = value
}
})
.onChange(of: present_t, perform: {
value in
if !value {
//以防万一,确保异步延迟在操作一次,防止显示弹出框时未找到任何窗口
DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) {
present = value
}
}
})
if present {
taskRowToolMenu
}
}
Will be fixed in v1.4.0, coming in a couple weeks