Skip to content

Instantly share code, notes, and snippets.

@jboullianne
Created July 5, 2020 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jboullianne/04945dd552714deeab277bb4e28aff43 to your computer and use it in GitHub Desktop.
Save jboullianne/04945dd552714deeab277bb4e28aff43 to your computer and use it in GitHub Desktop.
//
// SideMenuTest.swift
// CardEffectsTest
//
// Created by Jean-Marc Boullianne on 7/3/20.
//
import SwiftUI
struct SideMenuTest: View {
@State var selection: Int = 0
var body: some View {
ZStack {
Color.gray.opacity(0.8)
SideMenu(selected: $selection, options: ["NEWEST", "POPULAR", "SALE"])
}.edgesIgnoringSafeArea(.vertical)
}
}
struct SideMenuTest_Previews: PreviewProvider {
static var previews: some View {
SideMenuTest()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment