In SwiftUI, you can use .stroke() to make an outer border, and use .strokeBorder() to make an inner border as demonstrated in this video.
Source code: https://gist.github.com/amosgyamfi/bc...
Join to learn more on UDEMY:
SwiftUI Animations: hhttps://www.udemy.com/course/swiftui-...
Design With SwiftUI: https://www.udemy.com/course/swiftui-...
GitHub: Animation
https://github.com/amosgyamfi/open-sw...