This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ================================ | |
# 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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import UIKit | |
struct ContentView: View { | |
@State private var showSheet = false | |
var body: some View { | |
Button("Show Sheet") { | |
self.showSheet = true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
@Observable | |
final class AppModel { | |
var value = 0 | |
func setRandomValue() { | |
value = Int.random(in: 0 ... 10) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// FormRowHighlightIssue | |
// | |
// Created by Tito Ciuro on 3/27/24. | |
// | |
import SwiftUI | |
enum Route: Hashable { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/ | |
# |