matrix-org / matrix-rust-components-swift

Swift package providing components from the matrix-rust-sdk
Apache License 2.0
26 stars 6 forks source link

Usage of Swift Async #3

Closed ShadowJonathan closed 1 year ago

ShadowJonathan commented 2 years ago

Together with https://github.com/matrix-org/matrix-rust-components-swift/issues/2, and swift async, any downstream project (such as element-x-ios) can benefit from the async-ness of library, allowing for smoother experiences (with apple components such as swiftUI, which has better responsiveness then)

This can be done in either of two ways;

poljar commented 1 year ago

uniffi nowadays supports async Swift, support for this was recently merged in https://github.com/matrix-org/matrix-rust-sdk/pull/1661. It's not yet clear if the approach is bug-free, but I think we can close this issue.