Skip to content

Instantly share code, notes, and snippets.

View LeTarrask's full-sized avatar

Alex Luna LeTarrask

View GitHub Profile
// Generic App config enum
enum AppConfig {
static let apiBaseURL = URL(string: "https://api.swiftbysundell.com")!
static var enableExperimentalFeatures = false
...
}
// Animation States
extension Animation {
enum RepeatMode: Equatable {
// Resizable image, fits in frame
Image(systemName: "umbrella")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 50, height: 50)
//Increase hit area, including transparent area