Type Safely

Type Safely

Create a Custom Stepper From Scratch

Daily Coding Tip 254

Type Safely's avatar
Type Safely
Feb 24, 2023
∙ Paid
black portable speaker
Photo by Przemyslaw Marczynski on Unsplash

I’m going to replicate Apple’s system Stepper control in several ways.

First the initialiser for Stepper that I’m going to be imitating takes a numeric type that conforms to the Strideable protocol. This allows for an individual movement in a type to be specified by a type called a Stride, which is often the sam…

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