IOS_DatePicker๋ Jetpack Compose UI๋ฅผ ์ฌ์ฉํ์ฌ ๊ฐ๋ฐ๋ iOS ์คํ์ผ์ ํ๊ตญ์ DatePicker ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋๋ค. IOS_DatePicker๋ ์ฌ๋ฌ ์ปค์คํฐ๋ง์ด์ง ์ต์ ์ ์ ๊ณตํฉ๋๋ค.
SpinnerDatePicker(
modifier = Modifier,
offset =/*offset*/,
yearsRange = IntRange(/*minYear*/,/*maxYear*/),
startDate =/*startDate*/,
textStyle =/*textStyle*/,
isTransformationEnabled = /*isTransformationEnabled*/,
selectorEffectEnabled =/*selectorEffectEnabled*/,
selectViewEnable =/*selectViewEnable*/,
darkModeEnabled =/*darkModeEnabled*/,
onDateChanged = { year, month, day ->
/*Handle date changes*/
}
)
Parameter | Type | Description |
---|---|---|
offset |
Int | ํผ์ปค์ ํ์ํ ํญ๋ชฉ ์ [default: 3] |
yearsRange |
IntRange | ์ ํ ๊ฐ๋ฅํ ์ต์ ๋ฐ ์ต๋ ์ฐ๋ [default: IntRange(1923, 2121)] |
startDate |
Long | ํผ์ปค์ ํ์๋ ์์ ๋ ์ง, ๋ฐ๋ฆฌ์ด ๋จ์ [default: ํ์ฌ ๋ ์ง] |
textStyle |
TextStyle | ํผ์ปค ํ ์คํธ ์คํ์ผ [default: fontSize = 16 , fontWeight = Bold] |
isTransformationEnabled |
Boolean | ์ ํ๋์ง ์์ ํญ๋ชฉ์ ๋ํ ๋ณํ ํจ๊ณผ ํ์ฑํ ์ฌ๋ถ (์: ํ์ , ํ๋) [default: true] |
selectorEffectEnabled |
Boolean | ์ ํ ์ ํ ํฑ ํจ๊ณผ ํ์ฑํ ์ฌ๋ถ [default: false] |
selectViewEnable |
Boolean | ์ ํ๋ ํญ๋ชฉ์ ๊ฐ์กฐํ๋ SelectView ํ์ฑํ ์ฌ๋ถ [default: false] |
onDateChanged |
(Int, Int, Int) -> Unit | ํผ์ปค ๊ฐ์ด ๋ณ๊ฒฝ๋ ๋ ํธ์ถ๋๋ ์ฝ๋ฐฑ ํจ์, ์ฐ, ์, ์ผ์ ์ธ์๋ก ๋ฐ์ต๋๋ค. |
darkModeEnabled |
Boolean | ๋คํฌ๋ชจ๋ ํ์ฑํ ์ฌ๋ถ [default: false] |
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.KDW03:IOS_DATEPICKER:1.0.3'
}