Type Safely

Type Safely

Make a Retro LCD Number Display With SwiftUI

Daily Coding Tip 052

Type Safely's avatar
Type Safely
Apr 05, 2022
∙ Paid
Image by labenord from Pixabay

Let’s get started

We’re going to start by creating two enums: one that identifies which side a segment is on, and another to define behaviour for four segments.

The Preview Canvas on the right of the screenshot below shows a small group of four segments, and below that is a complete number with eight segments. The thickness …

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture