Skip to content

What Is 'private(set)' In Swift?

Published: at 12:00 AM

Often times, if I can’t sleep at night, I try thinking of unique ways in which I can make a property’s setter private, but keep its getter public.

If you have the same issue, then the short screencast video below is for you!