The elegant full screen page view missed in SwiftUI
ElegantList
datasource is now a closure called viewForPage
that needs to be provided everytime an ElegantList
component is initialized.
ElegantPages
delegate is now an optional function called onPageChanged((Int)->Void)
that is chained to the view declaration.
You can easily do so by just attaching a .frame(width:)
or .frame(height:)
modifier to your ElegantVList
or ElegantHList
.
Made an error in logic before for reloading pages. Fixed that so it works fine now.
This pertains only to the ElegantList
component. This works exactly like reloadData
from UITableView