mironal / TwitterAPIKit

Swift library for the Twitter API v1 and v2 🍷
MIT License
119 stars 24 forks source link

SwiftUI Example App #145

Open amirsaam opened 1 year ago

amirsaam commented 1 year ago

Hey, Thanks for your great framework!

The only thing is, me (and many other I assume), we are not a StoryBoard & UIKit user and have (very) limited knowledge about them, personally I cannot read those correctly, can you please make a SwiftUI example? I'll appreciate it.

Regards

amirsaam commented 1 year ago

Sorry for bothering, but will we see one?

mironal commented 1 year ago

Thanks for the request. I would like to add a SwiftUI sample, although it is difficult to create one right away.

amirsaam commented 1 year ago

Thanks for answering. There is no rush, I was just making sure about the possibility of it.

juanjovn commented 1 year ago

Hi @amirsaam, As long as you can deal with MVVM pattern you'll have no problem implementing this library for your needs. I'm currently building an app in SwiftUI using TwitterAPIKit, holding the logic that I need from Twitter in a Manager class, (where I import this library) and injecting it to the proper view models. You can handle the asynchronism with async-await, completion handlers or in my case I'm using Combine. Hope it helps!

amirsaam commented 1 year ago

@juanjovn Thanks for the explanation! Much appreciated.

amirsaam commented 1 year ago

Any update for this?