In SwiftUI you'll use files named something like OnboardingView_Previews using the PreviewProvider-protocol to create previews. Unused.rb reports them as unused, which is somewhat correct, but they are used by the developers to see what they're coding.