Skip to content

Instantly share code, notes, and snippets.

View michael94ellis's full-sized avatar

Michael Ellis michael94ellis

View GitHub Profile
@michael94ellis
michael94ellis / SwiftUIAppToaster.swift
Last active June 11, 2025 11:10
A simple way to show a toast in SwiftUI apps over all other view activity.
// Inspired by Federico Zanetello
// https://www.fivestars.blog/articles/swiftui-windows/
import UIKit
import SwiftUI
struct ToastView: View {
let message: String
/// Total duration that the toast will be visible on screen
let duration: TimeInterval
@VAndrJ
VAndrJ / ContentView.swift
Created February 24, 2024 09:16
SwiftUI zIndex MRE
//
// ContentView.swift
// PosIndexMRE
//
// Created by VAndrJ on 24.02.2024.
//
import SwiftUI
struct ContentView: View {