Previewable is a Utility reusable View class that allows for previewing the UI when building for iOS to show in different features
Light & Dark Modes | No Notch, Small iPhones, and iPads |
struct PrayersView_Previews: PreviewProvider {
static var previews: some View {
PreviewableView( // 2
[
.darkMode,
.noNotch,
.iPad
]
) {
// 1
PrayersView(
store: .init(
initialState: .init(),
reducer: prayerReducer,
environment: PrayerEnvironment()
)
)
}
}
}
In your Preview Views
PreviwableView(_ features: [PreviewableFeatures]) { /*...*/ }
You know the drill, Fork, Make your edits, and open a PR if you want
link |
Stars: 0 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics