cost 313 ms
SwiftUI ButtonStyle animation 导致 UI 在系统外观更改时不会在 App Switcher 快照中更新 - SwiftUI ButtonStyle animation causes UI not to update in App Switcher snapshot when system appearance changes

在我的应用程序中,我有一个按钮,我想在触摸它时对其进行动画缩小。 为此,我创建了一个带有显式animation的自定义ButtonStyle 。 这按预期工作,但在暗/亮模式系统外观之间切换时引入了问题。 如果在应用程序打开时更改它, Color会按预期更新,但如果应用程序未打开,则应用程序切换器中 ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM