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 [...]
How To: Pass Data Between Views with SwiftUI
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 [...]
10 Cardinal Steps to Beta Test Your Mobile App
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 [...]
MVVM and SwiftUI
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 [...]
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 [...]
Most Popular Posts
-
Top 7 Best No-Code App Builders of 2025
By Anuj | January 23, 2025
-
10 Best Website Builders for 2025
By Abhinav Girdhar | January 23, 2025
-
Best AI App Builders in 2025
By Abhinav Girdhar | January 23, 2025