SwiftUI :Scroll Progress Tracker: Building a Dynamic Reading Progress

Опубликовано: 13 Май 2023
на канале: SuCodee
194
9

rogress" is a hands-on tutorial that guides you through the process of creating a reading progress tracker using SwiftUI, a user interface toolkit developed by Apple.
UIScrollView: The tutorial shows how to use a UIScrollView via the UIViewRepresentable protocol. UIScrollView is a UIKit component that lets users scroll through content that is larger than the device's screen.
Progress Tracking: You'll learn how to calculate the reading progress by dividing the current scroll offset by the total scrollable content height. This calculation is performed every time the user scrolls the text.
ProgressView and Custom Styles: The tutorial demonstrates how to use SwiftUI's ProgressView to display the reading progress. It also teaches you how to create custom ProgressView styles to change the color of the progress fill and replace the progress percentage with a checkmark when the reading is complete.


⬇️⬇️ Source Code
https://www.patreon.com/posts/swiftui...

BuyMeaCoffee
https://www.buymeacoffee.com/sucodee