Map, Reduce and Filter in Swift

Abhinav Girdhar
By Abhinav Girdhar | February 6, 2025 1:26 pm
Map, Reduce and Filter in Swift

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: Pass Data Between Views with SwiftUI

Abhinav Girdhar
By Abhinav Girdhar | February 6, 2025 1:19 pm

How do you pass data between views in SwiftUI? If you’ve got multiple views in your SwiftUI app, you’re gonna want to share the data from one view with the next. We’re going to discuss 4 approaches to do so in this app development tutorial! Here’s what we’ll get into: Passing data between views using a property Working with @State and @Binding Passing data via the view’s environment Passing data via @ObservedObject and @StateObject Table of Contents Passing Data [...]

Read More

10 Cardinal Steps to Beta Test Your Mobile App

Abhinav Girdhar
By Abhinav Girdhar | February 6, 2025 12:51 pm

App Builder Appy Pie, February 22, 2018: For a good app developer of any standing in the field, the importance of a thorough beta testing need not be stressed upon. Like any other product, your app too needs to be tested for any kind of flaws (bugs & crashes) before making it available to the customers. To make sure that you get rid of all your hidden bugs and problems within the app, beta testing is the only way to go. Beta testing is the secret for the best app quality, indeed. There ar [...]

Read More

MVVM and SwiftUI

Yuvraj Singh
By Yuvraj Singh | February 6, 2025 12:49 pm

SwiftUI is not MVVM, but they go really well together. What’s the Model-View-ViewModel (MVVM) architectural pattern and how do you use it? In this mobile app development tutorial, we’ll discuss how you can use MVVM to better organize your app’s code. Here’s what we’ll get into: How to see iOS development with SwiftUI through the lense of MVC and MVVM All the roles: models, views, controllers, view controllers, ViewModels Why SwiftUI and [...]

Read More

An Extensive Guide to WKWebView

Abhinav Girdhar
By Abhinav Girdhar | February 6, 2025 12:44 pm
An Extensive Guide to WKWebView

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 L [...]

Read More

Most Popular Posts