Skip to content

Instantly share code, notes, and snippets.

Sarah Reichelt trozware

Block or report user

Report or block trozware

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
trozware / ContentView.swift
Created Oct 4, 2019
Demonstration of dismissing sheet in SwiftUI and what can trigger the "onDismiss" action.
View ContentView.swift
import SwiftUI
struct ContentView: View {
@State private var showingSheet = false
@State private var counter = 0
var body: some View {
VStack(spacing: 50.0) {
Text("Sheet has been shown \(counter) times.")
View NCSS-2018-Swift - 1. Data.swift
var hitPoints = 29
hitPoints = 12
You can’t perform that action at this time.