Skip to content
Excelsior Technologies
4 min read

Essential practices for successful iOS development

We revisit foundational iOS development advice, updating it for a world with SwiftUI and Swift Concurrency. Learn the modern trade-offs between new frameworks and established patterns for building maintainable apps.

Written by
Excelsior Technologies
iosswiftswiftuimobile development

Essential Tips for Successful iOS Development

A few years ago, a guide to iOS development would have centred on mastering UIKit with Storyboards, managing state with MVC and handling asynchronous work with Grand Central Dispatch. While the core principles of good software engineering remain, the tools and best practices have shifted. This article revisits that essential advice, examining what holds up and what has been replaced by modern approaches like SwiftUI and Swift Concurrency.

The UI layer: from UIKit to SwiftUI

The previous advice was to master Storyboards and Auto Layout. For years, this was the standard for building user interfaces in UIKit. Storyboards provide a visual canvas, which can be useful for mapping out simple application flows. However, for complex, dynamic UIs, they become difficult to manage, especially in a team environment where merge conflicts in the underlying XML are common.

Today, the conversation is dominated by SwiftUI, Apple's declarative UI framework. Instead of describing *how* to lay out your interface, you declare *what* your interface should be for a given state. This drastically reduces boilerplate code and simplifies state management.

The trade-off is clear. For new projects, SwiftUI enables faster development, easier iteration and a more maintainable UI layer. But UIKit is not obsolete. You still need it for deep customisation, accessing certain low-level APIs, or when incrementally updating a large, mature UIKit application. We often build hybrid apps that use both, choosing the right tool for each specific screen or component.

Architecture: choosing a pattern that fits

Model-View-Controller (MVC) was the recommended starting point. It is Apple's default pattern and separates concerns at a high level. Its main weakness is that it encourages putting too much logic into the 'Controller', leading to the 'Massive View Controller' problem that makes code hard to test and maintain.

Model-View-ViewModel (MVVM) was presented as an alternative, and its importance has only grown. MVVM is a natural fit for the reactive, state-driven nature of SwiftUI. The ViewModel exposes state to the View, which simply renders it. This creates a clean separation that improves testability, as the UI logic is decoupled from the UI framework itself.

Choosing an architecture is a decision about managing complexity. While patterns like VIPER offer even stricter separation of concerns, they come with significant boilerplate and a steeper learning curve. The right pattern depends on team familiarity and project complexity; over-engineering is as much a risk as under-engineering.

Concurrency: async/await changes the game

One of the most significant recent changes to the platform is Swift's new concurrency model. Previously, asynchronous operations relied on completion handlers and frameworks like Grand Central Dispatch (GCD). This often led to nested callbacks, known as the 'pyramid of doom', which was difficult to read and error-prone.

Modern Swift uses async/await syntax. This allows you to write asynchronous code that reads like synchronous, sequential code, making it far more intuitive. The trade-off is that it requires a new mental model. You must understand structured concurrency and the actor model to prevent data races and other concurrency bugs. Migrating an older codebase from delegate patterns or completion handlers requires careful planning and wrapping of legacy APIs.

What remains essential

Amidst these changes, some principles of quality software development are constant.

Solid Swift fundamentals

Mastering Swift is still non-negotiable. A deep understanding of its type system, including protocols, generics and value vs reference semantics, is the foundation for writing clean, performant and safe code.

Disciplined performance tuning

Performance is not an afterthought. We use tools like Instruments and the Xcode Memory Graph Debugger to profile applications, identify bottlenecks and manage memory. The goal is a responsive UI, even on older devices or poor network connections.

Rigorous testing

Automated tests are critical for long-term maintainability. We use XCTest to write unit tests for business logic and UI tests for critical user flows. A testable architecture is a prerequisite, not an add-on.

Understanding App Store guidelines

Adhering to Apple's App Store Review Guidelines is a project risk that must be managed from the start. A rejection during the review process can cause significant delays. We treat the guidelines as a core project requirement.

Building for today's iOS

Building a successful iOS app now means making informed decisions between mature and modern frameworks. It requires an architectural approach that anticipates change and a development partner who understands the technical trade-offs. At Excelsior Technologies, we build custom iOS applications, navigating these choices to deliver apps that are both maintainable and performant. We have published eleven case studies detailing our work, including mobile platforms for clients like Jhumru and Angel EduNext.

The LicencePrep app on an iPad in landscape

We have built this

LicencePrep and Growth Planet, our own Flutter apps

LicencePrep, our driving-test practice app for Ontario, Alberta and British Columbia, runs on iPhone, iPad and Android from one Flutter codebase. Growth Planet ships its iPhone and Android apps the same way.

Read the LicencePrep case study →

Want this for your business?

Ask ET on our website, or book a free 30-minute call with a project lead, not a salesperson.

Ask AI about Excelsior

Don’t take our word for it.Ask an AI.

Ask ET, our own assistant, or the one you already use. The question is about this page; you can read it, copy it or change it there.

The question we’ll ask
“What does Excelsior Technologies, the software company in Ahmedabad and Toronto, do, what have they built, and would they be a good fit for my project?”

Opens in a new tab with this question. Nothing about you is sent.