This section explains what are the limitations of overriding suspend functions in Swift code. Are there any specific recommendations then? What should we do if we want to have an interface with a suspend function that we want to be implemented in Swift?
s
streetsofboston
11/13/2024, 12:23 PM
If possible, try to implement it in Kotllin, in iosMain. Even if it's just a partial implementation with/using a delegate injected from Swift.
c
curioustechizen
11/13/2024, 12:25 PM
Are there any examples? The reason for making the interface declare a suspend function is that the Swift implementation needs to call in to other