Skip to content

Instantly share code, notes, and snippets.

View andrelouw's full-sized avatar
😎
Age of the geek baby!

André Louw andrelouw

😎
Age of the geek baby!
  • Berlin, Germany
  • 23:07 (UTC +02:00)
View GitHub Profile
@andrelouw
andrelouw / PreviewProviderModifier.swift
Created November 16, 2020 06:26 — forked from davidsteppenbeck/PreviewProviderModifier.swift
A SwiftUI view modifier for simple preview providers.
#if DEBUG
import SwiftUI
struct PreviewProviderModifier: ViewModifier {
/// Whether or not a basic light mode preview is included in the group.
var includeLightMode: Bool
/// Whether or not a basic dark mode preview is included in the group.
var includeDarkMode: Bool