Skip to content

Instantly share code, notes, and snippets.

View tovkal's full-sized avatar

Andrés Pizá Bückmann tovkal

View GitHub Profile
@tovkal
tovkal / BottomFindableScrollView.swift
Created March 16, 2022 15:34
Find the bottom of a ScrollView in SwiftUI
import SwiftUI
struct BottomFindableScrollView<Content: View>: View {
private let axes: Axis.Set
private let showsIndicators: Bool
@Binding private var bottomReached: Bool
private let content: Content
private let coordinateSpaceName = "scrollSize"
@State private var wholeSize: CGSize = .zero
@tovkal
tovkal / CustomNavigation.swift
Created June 6, 2024 11:00
How to implement NavigationLink's destination parameter without a closure?
import PlaygroundSupport
import Foundation
import SwiftUI
struct SomeView: View {
var body: some View {
Text("Some")
}
}