Skip to content

Instantly share code, notes, and snippets.

View laszlotuss's full-sized avatar
💪

László laszlotuss

💪
View GitHub Profile
@laszlotuss
laszlotuss / LinkButton.swift
Created May 15, 2024 15:24
LinkButton for watchOS
//
// LinkButton.swift
//
// Created by Tuss László on 15/05/2024.
//
import SwiftUI
import AuthenticationServices
struct LinkButton<Label: View>: View {
@laszlotuss
laszlotuss / AdaptiveStack.swift
Last active February 20, 2024 19:07
AdaptiveStack
import SwiftUI
struct AdaptiveStack<Content: View>: View {
@Environment(\.horizontalSizeClass) var sizeClass
let horizontalAlignment: HorizontalAlignment
let verticalAlignment: VerticalAlignment
let spacing: CGFloat?
let isVertical: Bool?
let content: () -> Content