Skip to content

Instantly share code, notes, and snippets.

View Codelaby's full-sized avatar

Codelaby Codelaby

View GitHub Profile
@metasidd
metasidd / PillButtons.swift
Last active June 30, 2024 02:45
Pill Buttons - Mail App iOS 18 - SwiftUI
//
// PillButtons.swift
//
// Created by Siddhant Mehta on 6/11/24
// Twitter: @metasidd
//
// Feel free to reuse, or remix.
import SwiftUI
@1998code
1998code / ContentView.swift
Created July 27, 2024 10:48
Olympic Games 2024
//
// ContentView.swift
// olympics
//
// Created by Ming on 27/7/2024.
//
import SwiftUI
struct ContentView: View {
import SwiftUI
extension View where Self: Shape {
func glow(
fill: some ShapeStyle,
lineWidth: Double,
blurRadius: Double = 8.0,
lineCap: CGLineCap = .round
) -> some View {
self
@Lofionic
Lofionic / ContentView.swift
Last active October 22, 2024 23:34
Shader fun
import SwiftUI
struct ContentView: View {
@State private var start = Date.now
var body: some View {
VStack {
TimelineView(.animation) { timeline in
let time = start.distance(to: timeline.date)
Rectangle()