Map, Reduce and Filter in Swift

Aasif
By Aasif | December 7, 2021 3:07 pm  | 4-min read

In Swift you use map(), reduce() and filter() to loop over collections like arrays and dictionaries, without using a for-loop. The map, reduce and filter functions come from the realm of functional programming (FP). They’re called higher-order functions, because they take functions as input. You’re applying a function to an array, for example, to transform its data. Swift’s Map, Reduce and Filter functions can challenging to wrap your head around. Especially if you’ve always coded [...]

Read More

How To Learn iOS App Development

Aasif
By Aasif | Last Updated on December 8th, 2021 12:00 pm | 4-min read

In this tutorial, we’ll discuss how you can best learn iOS app development. We’re going to look at how you can learn to code iOS apps, instead of focusing on how to build an app. Just as with learning anything new, learning iOS development is challenging. It’s also fun, exciting and rewarding! Can you take an approach that takes the frustration out of learning how to build iOS apps, while getting you faster to the finish line? Yes! Here’s what we’ll get into: What iOS developm [...]

Read More

An Extensive Guide to WKWebView

Aasif
By Aasif | Last Updated on December 8th, 2021 12:00 pm | 5-min read

You use WKWebView to display interactive web content in your app. Ideal for displaying HTML markup, styled text content, or complete web pages. It’s like having a small web browser right in your app! In this tutorial you’ll learn: How to use WKWebView with Swift How to respond to events and user interaction with delegation Why WKWebView is useful, and in what scenarios Some quick tips, like getting the web page content size Table of Contents Loading a Web Page in WKWebView [...]

Read More

Scene Delegate vs. App Delegate Explained

Aasif
By Aasif | Last Updated on December 8th, 2021 12:00 pm | 5-min read

What does the SceneDelegate class in your iOS project do? In Xcode, the scene delegate and/or app delegate is added automatically for the default iOS app project template. What are these delegates for, exactly? In this tutorial, we’ll dive into the scene and app delegates in Xcode, and how they affect SwiftUI, Storyboards and XIB based UIs. You’ll learn about: The app delegate and scene delegate How the they work together to bootstrap your app How to set up your app programmatical [...]

Read More

Combining Network Requests with Combine and Swift

Aasif
By Aasif | Last Updated on December 8th, 2021 12:00 pm | 7-min read

What if a HTTP network request depends on the response of another? In this tutorial, we’ll discuss how you can parallelize and/or serialize networking tasks with Combine. Here’s what we’ll get into: Combining multiple Combine publishers in Swift Working with Publishers.Zip and flatMap() How subscribers and publishers work in Combine Getting to know Combine’s generics and types Working with JSON and Codable with Combine Making network requests with Combine and URLSession Getti [...]

Read More

Most Popular Posts