mirror of
https://github.com/fankes/pagecurl-multiplatform.git
synced 2025-09-06 02:35:25 +08:00
Add examples to demo app
This commit is contained in:
@@ -11,7 +11,7 @@ import eu.wewox.pagecurl.ExperimentalPageCurlApi
|
||||
import eu.wewox.pagecurl.config.PageCurlConfig
|
||||
|
||||
/**
|
||||
* Shows the pages which may be rotated by drag or tap gestures.
|
||||
* Shows the pages which may be turned by drag or tap gestures.
|
||||
*
|
||||
* @param state The state of the PageCurl. Use this to programmatically change the current page or observe changes.
|
||||
* @param modifier The modifier for this composable.
|
||||
|
@@ -71,7 +71,7 @@ public class PageCurlState(
|
||||
internal set
|
||||
|
||||
/**
|
||||
* The observable progress as page is rotated.
|
||||
* The observable progress as page is turned.
|
||||
* When going forward it changes from 0 to 1, when going backward it is going from 0 to -1.
|
||||
*/
|
||||
public val progress: Float get() = internalState?.progress ?: 0f
|
||||
|
Reference in New Issue
Block a user