Skip to content

SwiftUI Animation API Support #9

Answered by marcprux
DominatorVbN asked this question in Q&A
Discussion options

You must be logged in to vote

Ahh... Pretty confused now, the API exist to Crash... !?

I assume you are referencing that withAnimation just calls fatalError() at:

https://github.com/skiptools/skip-ui/blob/3a7ccb00d368d9b1858f55719ced660e7f0e4ee1/Sources/SkipUI/SkipUI/Animation/Animation.swift#L181-L182

The current state of Skip is that a number of unsupported API calls simply crash. In many cases, we have annotated these with @unavailable, so at the least the Skip transpiler plugin will warn you about using unsupported API. However, in this case, we didn't, and hence your crash.

We will work on getting better availability annotations implemented in the near future. Thanks for your patience.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DominatorVbN
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by marcprux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants