See All Work

Unifi

Sole iOS developer, 2022 to 2026

I rebuilt the app in about three months, and its App Store listing counts more than 164,000 students at 167 universities.

Unifi App Store image, “Every chat. Every fresher.”: group chats on two phones.
Unifi App Store image, “Your digital student card”: a card with a QR code.
Unifi App Store image, “Events & tickets sorted”: a list of events with ticket buttons.

A social network for university students in the United Kingdom, where freshers find their course mates and flatmates before they move in. Its App Store listing counts more than 164,000 students at 167 universities.

Context

Unifi is free to join, and the way in is a university email. Its App Store listing calls it a verified community of UK students. The chats are already set up when a student arrives: for the course, for the halls, for the year group and for interests. A student can search for the people on the same course, in the same halls and at the same university, and link their social accounts.

The rest of Unifi is about events and venues. Events and their tickets are kept in the app. A digital student card carries one QR code for partner bars and clubs: the student shows it, gets the deal and earns rewards. Partner venues have a members card as well.

Challenge

Unifi is several apps in one. It is a chat app, a search for other students, a hub of posts and events, and a card that is sold in the app and shown at a bar. Each of them has problems of its own, and on the iPhone there was one developer for all of them.

Chat ran in real time over a socket, and a socket on a phone goes down and comes back. In the meantime a session could expire. A message could leave the phone and never be confirmed by the server. A student could read messages while the socket was down, and those still had to count as seen. The card had a problem of the same kind: it had to show its QR code at a venue, whether or not the phone had a connection there.

Role and Scope

In the old app my first weeks went into clearing compiler warnings and deprecated APIs across the code. In August 2022 I added campus moments to the hub: photo and video posts with their viewers and a view count, a like by double tap, a mute state, and sound that played even with the phone on silent. Around them I brought social handles into registration and the profile, updated the onboarding slides, put a contact button on the verification screen and replaced the generic error messages. For crash safety I removed force unwraps and unsafe indexes on the chats, the hub and the connections list. The new app I wrote alone: sign-up, Discover, the chat, the card and its purchase, the hub and the venue account.

Before I wrote the new Unifi, I worked in the one it replaced. That app had been written in UIKit by other developers, students were already using it, and from May to October 2022 I shipped its updates and new features. So in February 2023, when I opened an empty project and began again in SwiftUI, I knew the app from the inside. Version 4.0, the new app’s first release, was ready that May, about three months later, and ten more releases followed by the end of August. I kept working on it until early 2026, long enough to live with every choice I made in those three months.

Constraints

  • Joining took a university email, and the address had to be verified by mail.
  • The chat socket could drop at any time, and the chat had to carry on from where it stopped.
  • The card had to show its QR code even with no connection.
  • One app held two kinds of account: a student’s and a venue’s.

Solution

I wrote the new app in SwiftUI, in the MVVM pattern, with a view model for each screen. The network layer and the events inside the app ran on Combine. Every API provider sat behind a protocol of its own, with a mock service beside it. The app had five tabs: the hub, Discover, the card, chat and the profile. Sign-up took three steps and a university email, verified through a message sent to that address. Login and a password reset by link stood beside it, and a profile carried the student’s socials and interests. Discover listed students filtered by university, course and year, and loaded them page by page with a cursor. In 2025 I added a search for courses and universities, with suggestions as the student typed.

Chat ran in real time over a socket. There were chats for a course, for halls, for an interest and for a year group, and beside them direct chats and group chats. Messages were grouped, and a chat showed when someone was typing, which messages were delivered and which were seen, and a label for the unread ones. While the socket was reconnecting, the chat screens showed a connection indicator. The app subscribed to push notifications by topic, with a topic for each university. Opening a chat from a notification marked that chat as seen. Notifications inside the app could be swiped away, and deep links led into the app. On logout the app cleared its chat data.

The card was an in-app purchase, by the month or by the year, with a way to restore a purchase and a flow for cancelling one. Its QR code was drawn on the phone itself. In 2025 a loyalty card and a VIP card joined it. The hub held posts, events and tickets, and in 2023 comments and replies arrived. A video player cached its videos, and posts and members could be reported. An account could be active, inactive or blocked. In 2025 the hub got a new feed, and events could be created in the app. The same app had a venue account too. On an iPad a venue scanned students’ cards, kept a list of the scans and exported it as a CSV report.

Technical Highlights

  • A Session That Renews Itself When the chat server rejected an expired session, the app refreshed the session and reconnected with the new one.
  • A Second Try for an Unconfirmed Message A message that the server had not confirmed was offered for resending after about ten seconds.
  • Seen, Even After a Dropped Socket Messages read while the socket was down were marked as seen once it was back.
  • A Card That Shows Offline The card was kept in the Keychain, so it showed even without a connection.
  • A Smaller Video Upload In the old app I switched the video of a campus moment to HEVC, which makes the upload smaller. An audio track went with it only when the video had sound.

Outcomes

  • Unifi is on the App Store. Its listing speaks of 164,000+ students, with chats already set up at 167 UK universities. The App Store listing, 2 December 2026
  • SwiftUI
  • Chat socket
  • In-app purchases
  • MVVM
  • Firebase SDK
  • Notifications
  • CRUD API

Unifi on the App Store

What Is the Hard Part of Your Project?

Every project has one: a device to talk to, a chat that must not lose a message, or code that someone else wrote. Tell me what yours is, and we can start from there.

I reply within one working day. The first call and the estimate are free.

Discuss Your Project See How I Work