Animate symbols in your app

RSS for tag

Animate symbols in your app

Posts under wwdc2023-10258 tag

3 Posts

Post

Replies

Boosts

Views

Activity

Coloring SFSymbol in code
I'm currently experimenting with SFSymbol animations for iOS 17.0 I have a custom symbol that I like to animate with the Variable Color effect, and I want to set the colors in code. However, coloring the symbol in code doesn't work. What am I missing? Image("my-fancy-custom-symbol") .symbolRenderingMode(.multicolor) .foregroundStyle(.white, .yellow) .symbolEffect(.variableColor, options: .repeating)
0
0
910
Jul ’23
Is it possible to use the replace effect with custom symbols and system symbols in SwiftUI?
Hi! I was wondering if it is possible to use the replace effect from a custom symbol to a system symbol. I've tried a if/else to switch from an Image with a custom symbol to an Image with a system symbol to no avail. I assume it needs to be the same Image view when transitioning so I think that's my problem, is there something I'm missing?
0
0
984
Jun ’23
Coloring SFSymbol in code
I'm currently experimenting with SFSymbol animations for iOS 17.0 I have a custom symbol that I like to animate with the Variable Color effect, and I want to set the colors in code. However, coloring the symbol in code doesn't work. What am I missing? Image("my-fancy-custom-symbol") .symbolRenderingMode(.multicolor) .foregroundStyle(.white, .yellow) .symbolEffect(.variableColor, options: .repeating)
Replies
0
Boosts
0
Views
910
Activity
Jul ’23
Is it possible to use the replace effect with custom symbols and system symbols in SwiftUI?
Hi! I was wondering if it is possible to use the replace effect from a custom symbol to a system symbol. I've tried a if/else to switch from an Image with a custom symbol to an Image with a system symbol to no avail. I assume it needs to be the same Image view when transitioning so I think that's my problem, is there something I'm missing?
Replies
0
Boosts
0
Views
984
Activity
Jun ’23