Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tciuro's full-sized avatar

Tito Ciuro tciuro

  • Vida Life Foundation
  • San Jose, California
View GitHub Profile
# ================================
# Build image
# ================================
FROM swift:5.9-jammy as build
# Install OS updates and dependencies
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
&& apt-get update \
&& apt-get -q install -y \
sqlite3 libsqlite3-dev \
@tciuro
tciuro / ToastOverSheet.swift
Created April 14, 2024 23:45
Toast over Sheet in SwiftUI
import SwiftUI
import UIKit
struct ContentView: View {
@State private var showSheet = false
var body: some View {
Button("Show Sheet") {
self.showSheet = true
}
import SwiftUI
@Observable
final class AppModel {
var value = 0
func setRandomValue() {
value = Int.random(in: 0 ... 10)
}
}
@tciuro
tciuro / ContentView.swift
Last active March 29, 2024 11:19
SwiftUI Form Highlight Issue
//
// ContentView.swift
// FormRowHighlightIssue
//
// Created by Tito Ciuro on 3/27/24.
//
import SwiftUI
enum Route: Hashable {
# Docker Compose file for Vapor
#
# Install Docker on your system to run and test
# your Vapor app in a production-like environment.
#
# Note: This file is intended for testing and does not
# implement best practices for a production deployment.
#
# Learn more: https://docs.docker.com/compose/reference/
#