Skip to content

Instantly share code, notes, and snippets.

View dactrtr's full-sized avatar
💭
Waiting for the Github Stories

Sebastian Zúñiga dactrtr

💭
Waiting for the Github Stories
View GitHub Profile
import SwiftUI
import PlaygroundSupport
struct cleanBank : View {
@State var isOpen = false
@State var isVisible = false
var body : some View{
VStack{
header()
.offset(y:self.isVisible ? -32:0)
import SwiftUI
import PlaygroundSupport
func haptic(){
UINotificationFeedbackGenerator().notificationOccurred(.success) // works only on devices (iPhone)
}
struct buttons: View {
@State var isPress = false
@State var selected = 0