DebugFrame

DebugFrame is a modifier for SwiftUI view, which is very easy to use and add to any view you want. This modifier adds the overlay with stroke border and CGFrame parameters on your view. The modifier is so useful during making UI on your project using SwiftUI of course.

Integration (Cocoapods)

pod 'DebugFrame'

Usage

VStack {
  title
  Spacer()
  rectangles
    .debugFrame()
  Spacer()
}
.debugFrame()

Screenshot 2022-12-19 at 19 08 31

GitHub

View Github