I am looking for a component to display news

Hello. Do you know such a component?

In such a window I would like to display news downloaded from htmlem (if possible).

Hi @trifek! It looks like you may want to create a swipeable view? If so, I would suggest taking a look at this pod, https://github.com/zhxnlai/ZLSwipeableViewSwift . It allows for customization and appears to be updated for Swift 4.

In regards to downloading news, I would suggest using an API such as https://newsapi.org/ to access a variety of news data. If you are new to networking and displaying data, here are a few great tutorials: https://www.raywenderlich.com/158106/urlsession-tutorial-getting-started and https://www.raywenderlich.com/147086/alamofire-tutorial-getting-started-2 . Happy coding!

Best,
Gina

Thank you very much. How can I add pagination to it (dots under ZLSwipeableViewSwift)?

I thing about this:

Hi @trifek, I have yet to use ZLSwipeableViewSwift, but I would suggest experimenting with it and diving right in to see if you can achieve the pagination.

Best,
Gina

This topic was automatically closed after 166 days. New replies are no longer allowed.