Skip to content

Commit

Permalink
Fix: Tf Compiler Type Check Error Again
Browse files Browse the repository at this point in the history
Always remember add a pair of round brackets after .spring
or tf error will occur below macOS 14.0
  • Loading branch information
haren724 committed Aug 8, 2023
1 parent 08e360b commit ea8355a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Open Wallpaper Engine/ContentView/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ struct ContentView: View {
.clipShape(Rectangle())
.border(Color.accentColor, width: imageScaleIndex == index ? 1.0 : 0)
.selected(index == selectedIndex)
.animation(.spring, value: imageScaleIndex == index ? 1.2 : 1.0)
.animation(.spring(), value: imageScaleIndex == index ? 1.2 : 1.0)
.overlay {
VStack {
Spacer()
Expand Down

0 comments on commit ea8355a

Please sign in to comment.