Win a ticket for the ARCtic Conference. Join here for free.
Give your simulator superpowers

RocketSim: An Essential Developer Tool
as recommended by Apple

Ranges in Swift explained with code examples

Ranges in Swift allow us to select parts of Strings, collections, and other types. They’re the Swift variant of NSRange which we know from Objective-C, although they’re different in usage, as I’ll explain in this blog post. Ranges allow us to write elegant Swift code by using the range operator. Your first time working with … 

 

Universal Links implementation on iOS

Universal Links allow you to link to content inside your app when a user opens a particular URL. Webpages will open in the app browser by default, but you can configure specific paths to open in your app if the user has it installed. Redirecting users into your app is recommended to give them the … 

 

Optimizing your app for Network Reachability

Network Reachability is a vital aspect of apps that use some networking capabilities. Your users won’t always have a good internet connection, so optimizing your app for bad networking conditions is essential. We can leverage several techniques to optimize our app accordingly, but it’s essential to be aware of common mistakes when you do. After … 

 

Deeplink URL handling in SwiftUI

Deeplinks allow you to open your app and navigate into a specific location right after launch. An example could be deep linking to a recipe or movie based on the tapped link. You can determine the destination page based on the metadata provided by the URL. You can use a view modifier in SwiftUI or … 

 

Network Extension Debugging on macOS

A Network Extension on macOS allows you to create content filters, DNS proxies, and more. They integrate nicely into the system settings and are often used for applications like firewalls and VPN services. While Apple provides several sample applications like this for filtering network traffic, they don’t have an excellent explanation for testing and debugging … 

 

Running Xcode on top of iPad

Using the latest Xcode 14.3 and the iPad Pro (12.9 Inch) with iOS 16.4 beta, I’ve been able to run Xcode on top of the iPad Simulator. Running apps from Xcode will run on this Simulator directly, and debugging works as usual. The window might be small, but reading most of the code is still … 

 

Location Simulation in Xcode’s Simulator

Location Simulation is a critical feature for apps that provide location access. You want to mimic the environment of real users without stepping in your car and driving a route while debugging. Whether you want to simulate switching directly between two places or an entire route of waypoints: both are possible in Xcode’s Simulator. Earlier, … 

 

View Composition using ViewModifiers in SwiftUI

View Composition allows you to create reusable components to create enriched views. You can extract logic into reusable components using the ViewModifier protocol in SwiftUI and set up your code for reusability. I’ve been developing a set of view modifiers in RocketSim to enable TextField customizations. Combining all modifiers results in the most advanced TextField, …