ZupIT/beagle

Can't access ListView initializer for iOS SDK

Closed this issue · 2 comments

I can't access ListView initializer for iOS SDK

I can see it been used in tests but no way to access it in my code, can you provide help please.

Thanks

Hello @iAmrSalman, can you please tell us why you need access to the ListView initializer?

All access to component initializers have been deprecated on version 1.10 and made internal on version 2.0. This is because:

  1. We don't want to encourage the user to make his declarative screens without a backend. Beagle was made to be server driven and writing screens on the front-end is a bad idea. For writing declarative UI in the frontend, we recommend using SwiftUI instead.
  2. Not exposing this code make it easier to maintain.

If we find a valid reason to expose this initializer, we will consider it. But, for now, the only way to initialize a ListView is from Beagle itself, if you want to test a view without a backend, you can use a json as input to Beagle instead of a URL.

@iAmrSalman I'm closing this due to inactivity. If you still have a problem, feel free to reopen it.