Binding fetched data to View elements

First, we will delete the placeholder return. We want to transform the searchText into an array of repositories. We should point out that the unauthenticated GitHub API we are using has a rate limit of 10 requests per minute. We will use the throttle operator here to only take the latest element received through the specified time. This will prevent triggering multiple network requests in rapid succession. We will also use the distinctUntilChanged operator, which will allow only unique contiguous elements to pass through. As the change to text in searchText triggers the operation in this app, this is not necessary here, but we have Search button so that the user can click on the button to explicitly initiate ...

Get Reactive Programming with Swift 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.