RecoilSwift icon indicating copy to clipboard operation
RecoilSwift copied to clipboard

UIkit support?

Open BayramInanc opened this issue 2 years ago • 2 comments

Any plan for supporting it?

BayramInanc avatar Oct 07 '22 23:10 BayramInanc

Any plan for supporting it?

not yet

AppleTTT avatar Oct 08 '22 00:10 AppleTTT

maybe we will support UIKit in the. future, but for now, we dont have a plan for it

AppleTTT avatar Oct 08 '22 00:10 AppleTTT

@BayramInanc The key point that does not support UIKit for now are:

  • The hooks: In UIkit we need to find a way to refresh the UI after the state changes. But ideally, it could support UIkit with the delegate.

  • Recently, We are improving the stability and performance of the library. It's a big and exciting change. after that we may can consider whether we can support UIkit

hollyoops avatar Oct 27 '22 00:10 hollyoops

Any improvement for uıkit support?

BayramInanc avatar Dec 18 '22 03:12 BayramInanc

Not yet. Because recoil is based on the hooks. It means that we need to introduce hooks into UIKit. however, it's possible to achieve this. but need to take lots of effort. Recently we don't have a plan to do it.

If more and more people want UIkit support. then we will improve the priority.

hollyoops avatar Dec 19 '22 02:12 hollyoops

In a large, advanced projects we could not use swiftui because of its some bugs/version releated etc... problems. It would be really great if we support UIKit.

BayramInanc avatar Dec 19 '22 14:12 BayramInanc

Why cannot we use it without hooks?

BayramInanc avatar Dec 19 '22 14:12 BayramInanc

Actually, hooks, is not a must-have option. The key point in order to keep the same interface with Facebook. we use hooks, It's better to keep the same API interface for UIKit and swiftUI if possible.

We need to think about how to design it. If we couldn't do it In UIKit, we may use a delegate or callback to render when the state change. (Like Reswift)

current priority:

  • Make it more stable
  • Improve the performance for large view
  • Make more easy to debug (add time travel etc)

hollyoops avatar Dec 19 '22 15:12 hollyoops

@BayramInanc UIKit is supported since v0.3. Once the documentation is done, we will close this ticket

hollyoops avatar May 25 '23 02:05 hollyoops

Super excited about it> @BayramInanc UIKit is supported since v0.3. Once the documentation is done, we will close this ticket

BayramInanc avatar May 25 '23 10:05 BayramInanc