I am looking for a component to display news

Hello. Do you know such a component?

http://serwer1356363.home.pl/pub/2.png

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, GitHub - zhxnlai/ZLSwipeableViewSwift: A simple view for building card like interface inspired by Tinder and Potluck. . 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.