Comments (2)
Unrelated to this amazing package, thank god.
from parchment.
I have the same issue, when I append new items into the array of the scrollView inside the Page, it scrolls to the top. Seems like the whole page refreshes again.
Page { state in
crushBacksPageHeaderView(state)
} content: {
List {
ForEach(viewModel.crushBacks) { crushBack in
let crushBackCellViewModel = CrushBackCellViewModel(matchButtonPressed: onMatchButtonPressed(_:), notInterestedButtonPressed: crushBackNotInterestedButtonPressed(_:), viewDetailButtonPressed: onShowingCrushBackDetailView(_:))
CrushBackCell(crushBackModel: crushBack, viewModel: crushBackCellViewModel)
.cornerRadius(15)
.background {
RoundedRectangle(cornerRadius: 15)
.stroke(Color.gray.opacity(0.5), lineWidth: 1)
}
.listRowSeparator(.hidden)
.listRowBackground(Color.clear)
}
Button(action: loadMore) {
Text("Load more")
.multilineTextAlignment(.center)
}
}
.padding(.top, -12)
.refreshable {
Utility.delay(1) {
viewModel.crushBacks = CrushBackModel.mockData()
}
}
}
}
.indicatorColor(.main)
from parchment.
Related Issues (20)
- There is an issue that accidentally gets stuck and cannot keep clicking other tab item HOT 4
- How To Lazy Load Page HOT 1
- How can I hide the menu? (SwiftUI)
- Feature request: SF Icons instead of title text HOT 1
- My app crash when tap to page item. HOT 5
- The package product 'Parchment' cannot be used as a dependency of this target because it uses unsafe build flags. HOT 3
- Lazy loading VC HOT 1
- keyboard avoidance issue HOT 1
- how to make collectionview rounded and add shadow to collectionview HOT 1
- Improve notification list pull to refresh
- outdated code error in PagingSizeCache HOT 3
- Getting Fatal error while using storyboard more than 2 . Unable to reload 3rd storyboard table view HOT 1
- please support indicator fixed width HOT 2
- Position of tableview is reset after tab change in header above menu example HOT 1
- Using UIAlertController in per Item HOT 3
- Navigation bar disappear when presented in a sheet. HOT 3
- About swiftUI PageView content scrollview automatically slides to the top HOT 2
- Menu item error when Archive HOT 3
- Privacy Manifest HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parchment.