Member-only story
How to make Analog Clock using SwiftUI?
XCode-11.3,+ macOS-Catalina and iOS-13+
2 min readMay 31, 2020
- Create Time Observable
Create an ObservableObject with Timer to update UI every Second.
2. Create Clock Needles
Every Needle will be a two-dimensional shape. This Shape will start to form the center of the view.
Output
3. Draw Clock Ticks and Numbers:
- We need to draw 60 ticks. Every tick represents one…