All Projects → maxnatchanon → trackable-scroll-view

maxnatchanon / trackable-scroll-view

Licence: other
A SwiftUI custom scroll view with content offset binding

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to trackable-scroll-view

ImagePickerView
🌇 PHPickerViewController / UIImagePickerController for SwiftUI
Stars: ✭ 18 (-76.92%)
Mutual labels:  swiftui
SwiftUICoreData
SwiftUI Integration With CoreData FetchedRequest property wrapper
Stars: ✭ 16 (-79.49%)
Mutual labels:  swiftui
Weather
A simple SwiftUI weather app using MVVM.
Stars: ✭ 23 (-70.51%)
Mutual labels:  swiftui
SuperShapes
A tiny macOS app showing how to use Satin, Forge, Youi and SwiftUI to visualize super shapes in 3D.
Stars: ✭ 42 (-46.15%)
Mutual labels:  swiftui
BoredSwift
👀 Are you bored? This app helps find you something to do via https://www.boredapi.com/
Stars: ✭ 27 (-65.38%)
Mutual labels:  swiftui
Easify-iOS
An iOS application to test out Spotify API. It uses SwiftUI and Combine.
Stars: ✭ 15 (-80.77%)
Mutual labels:  swiftui
Flashcards
Application to memorise information in a game form (SwiftUI)
Stars: ✭ 14 (-82.05%)
Mutual labels:  swiftui
kinsight-multiplatform
Kotlin Multiplatform Concept - iOS, MacOS, WatchOS (SwiftUI), Android (phone and Wear OS), JVM Web Server - Alpha Capture
Stars: ✭ 38 (-51.28%)
Mutual labels:  swiftui
GitBlamePR
Mac app that shows pull request last modified each line of a file, Written in SwiftUI
Stars: ✭ 24 (-69.23%)
Mutual labels:  swiftui
E-Rezept-App-iOS
https://gematik.github.io/E-Rezept-App-iOS/
Stars: ✭ 76 (-2.56%)
Mutual labels:  swiftui
neumorphic-style
🎛 Simple SwiftUI ‘neumorphic’ button style
Stars: ✭ 54 (-30.77%)
Mutual labels:  swiftui
puffery
A SwiftUI iOS App and Vapor Server to send push notifications fueled by Siri Shortcuts.
Stars: ✭ 17 (-78.21%)
Mutual labels:  swiftui
Notflix
📱Netflix like application using SwiftUI and Combine
Stars: ✭ 76 (-2.56%)
Mutual labels:  swiftui
SwiftUIPlayground
SwiftUIPlayground is a collection of SwiftUI example code.
Stars: ✭ 13 (-83.33%)
Mutual labels:  swiftui
swiftui-image-viewer
Image viewer built in SwiftUI for both local and remote images.
Stars: ✭ 180 (+130.77%)
Mutual labels:  swiftui
myyearwithgit
代码仓库年终总结报告。
Stars: ✭ 176 (+125.64%)
Mutual labels:  swiftui
CurrencyText
Currency text field formatter available for UIKit and SwiftUI 💶✏️
Stars: ✭ 124 (+58.97%)
Mutual labels:  swiftui
Beers
SwiftUI Experiment - Shows a list of beers fetched from Punk API (https://punkapi.com/), includes detail view for each beer
Stars: ✭ 20 (-74.36%)
Mutual labels:  swiftui
jyutping
Cantonese Jyutping Keyboard for iOS. 粵語粵拼輸入法鍵盤
Stars: ✭ 23 (-70.51%)
Mutual labels:  swiftui
NetworkAgent
This package is meant to make http request of an easy way inspiren in the architecture of Moya package. This package is 100% free of dependencies and works with Combine api + Codable
Stars: ✭ 16 (-79.49%)
Mutual labels:  swiftui

SwiftUITrackableScrollView

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but SwiftUITrackableScrollView does support its use on supported platforms.

Once you have your Swift package set up, adding SwiftUITrackableScrollView as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/maxnatchanon/trackable-scroll-view.git")
]

Usage

import SwiftUITrackableScrollView
struct ContentView: View {
    @State private var scrollViewContentOffset = CGFloat(0) // Content offset available to use
    
    var body: some View {
        TrackableScrollView(.vertical, showIndicators: false, contentOffset: $scrollViewContentOffset) {
            ...
        }
    }
}

You can read the article about this custom scroll view here.
https://medium.com/@maxnatchanon/swiftui-how-to-get-content-offset-from-scrollview-5ce1f84603ec

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].