How to show text inside a circle with SwiftUI

Kristaps Grinbergs
Level Up Coding
Published in
4 min readJan 29, 2021

--

This time, we will look at a couple of ways to show a text label inside a circle using SwiftUI. We will dig deeper into three different ways using the ZStack view, .background and .overlay modifiers. In the end, as a small bonus, we will check out how to present a text label over a circle using the .clipShape modifier.

Photo by Octavio Fossatti on Unsplash.

--

--

Blockchain, mobile and fullstack developer. Startup founder. Conference speaker. Mentor. Passionate about building products, sustainability and Web 3.0.