By default, SwiftUI generates a struct which conforms to PreviewProvider, e.g.:
import SwiftUI
struct SettingsView: View {
var body: some View {
...
}
}
#if DEBUG
struct SettingsView_Previews: PreviewProvider {
static var previews: some View {
SettingsView()
}
}
#endif
In the default configuration, pecker reports SettingsView_Previews as unused. It would be good to add a rule to ignore structs which conform to PreviewProvider.
By default, SwiftUI generates a struct which conforms to
PreviewProvider
, e.g.:In the default configuration, pecker reports
SettingsView_Previews
as unused. It would be good to add a rule to ignore structs which conform to PreviewProvider.