Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get a swiftUI implementation example instead of UIKIT. #18

Open
ChrisRawstone opened this issue Apr 30, 2024 · 1 comment

Comments

@ChrisRawstone
Copy link

Hi,
Is it possible to get a swiftUI implementation example instead of UIKIT. Our Professor does not allow us to use UIKIT, because he argues that UIKIT has become too old and all industries are moving towards SwiftUI. Is it possible to get an example with SWIFTUI instead?

Best regards,
Christian

@pderrenger
Copy link
Member

Hi Christian,

We currently don't have a SwiftUI implementation example available in our documentation or repository. Most of our mobile-related examples are indeed based on UIKit due to its initial development period aligning more closely with UIKit's prevalence.

However, integrating our models into a SwiftUI project mostly involves working with backend processing, which can be similarly handled as in UIKit. The key difference would be in how you display the results within your SwiftUI views.

While we don't have a specific example to offer, you can use the Combine framework for handling asynchronous tasks and displaying results in SwiftUI. If your project involves displaying camera feeds or processing images, you might need to use UIViewControllerRepresentable to wrap UIKit components that handle these tasks, as SwiftUI still matures in these areas.

We understand the need for SwiftUI examples and appreciate your feedback. It's something we could look into for future updates. Meanwhile, consider exploring the bridge between SwiftUI and UIKit for camera and display functionalities.

Happy coding, and best of luck with your project! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants