by Anonymous » 05 Apr 2025, 21:13
Ich habe die folgende Schrubberimplementierung in Swiftui. Die Schaltfläche + soll die ScrollView nach 1 Tick (oder ScrollPosition durch 1 erhöht) verschieben. Das
Problem ist jedoch kein Scrolling, bis ich 8-9 Mal klicke. Ist dies ein Fehler in iOS oder ein Programmierfehler? < /P>
Code: Select all
struct BrokenVerticalScrubberDemo: View {
@State private var scrollPosition: Int? = 0
@State private var count: Int = 20
var body: some View {
VStack {
Text("Scroll Position: \(scrollPosition ?? 0)")
.font(.headline)
ScrollView(.vertical, showsIndicators: true) {
VStack(spacing: 8) {
ForEach(0..
Ich habe die folgende Schrubberimplementierung in Swiftui. Die Schaltfläche + soll die ScrollView nach 1 Tick (oder ScrollPosition durch 1 erhöht) verschieben. Das [url=viewtopic.php?t=20324]Problem[/url] ist jedoch kein Scrolling, bis ich 8-9 Mal klicke. Ist dies ein Fehler in iOS oder ein Programmierfehler? < /P>
[code]
struct BrokenVerticalScrubberDemo: View {
@State private var scrollPosition: Int? = 0
@State private var count: Int = 20
var body: some View {
VStack {
Text("Scroll Position: \(scrollPosition ?? 0)")
.font(.headline)
ScrollView(.vertical, showsIndicators: true) {
VStack(spacing: 8) {
ForEach(0..