.background(enabled ? .blue : .red). Finally, we add the animation() modifier to the button to make those changes animate:
確定! 回上一頁