A fixed width may overflow a resized scene
Review this constraint. Prefer flexible maxWidth or a container-relative width; verify small windows and large text before changing it.
A deliberately constrained SwiftUI control panel, analyzed by the same rules as your source. No account or repository permission needed.
3 configured rules matched · 1 Swift file scanned
import SwiftUI
struct CaptureControls: View {
var body: some View {
VStack {
Text("Ready to capture").font(.system(size: 14))
Button("Capture") { }
}
.frame(width: 600)
.ignoresSafeArea()
}
}0 configured rules matched · 1 Swift file scanned
import SwiftUI
struct CaptureControls: View {
var body: some View {
VStack {
Text("Ready to capture").font(.body)
Button("Capture") { }
}
.frame(maxWidth: .infinity)
.padding()
}
}Review this constraint. Prefer flexible maxWidth or a container-relative width; verify small windows and large text before changing it.
Limit this modifier to decorative backgrounds. Verify interactive content respects each safe-area edge independently.
Use semantic text styles or UIFontMetrics. Test accessibility text sizes and wrapping.
The revision removes the fixed width and safe-area override and adopts a semantic text style. A score of 100 means no configured rule matched this fixture. It does not mean the app works on a device.
Both snippets are educational fixtures, not a working camera app. The Capture action is intentionally empty. They have not been compiled or run in Xcode here; there are no device screenshots, runtime assertions or verified fix claims.
The public repository includes these exact fixtures and a test that checks the scores and findings. The report is generated from the analyzer rather than stored as a fabricated customer result.
View the public source fixtures ↗Public repositories need no GitHub connection. Private repositories require explicit access. Sign in only when you are ready to submit.
Analyze your app ↗Explore the free layout lab first ↗