Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Make a Retro LCD Number Display With SwiftUI

Make a Retro LCD Number Display With SwiftUI

Daily Coding Tip 052

Type Safely's avatar
Type Safely
Apr 05, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Make a Retro LCD Number Display With SwiftUI
Share
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 …

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share