Skip to content

IOS ์Šคํƒ€์ผ SpinnerDatePicker ๐Ÿ—“๏ธ

Notifications You must be signed in to change notification settings

KDW03/IOS_DATEPICKER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DatePicker

IOS_DatePicker๋Š” Jetpack Compose UI๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐœ๋ฐœ๋œ iOS ์Šคํƒ€์ผ์˜ ํ•œ๊ตญ์‹ DatePicker ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ž…๋‹ˆ๋‹ค. IOS_DatePicker๋Š” ์—ฌ๋Ÿฌ ์ปค์Šคํ„ฐ๋งˆ์ด์ง• ์˜ต์…˜์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

darkModeEnabled

Screen_Recording_20240501_234226_IOS_DatePicker_1-ezgif com-resize ย ย ย ย ย ย ย ย  Screen_Recording_20240501_232842_IOS_DatePicker-ezgif com-resize

selectViewEnable

Screen_Recording_20240501_233541_IOS_DatePicker_1-ezgif com-crop ย ย ย ย ย ย ย ย  Screen_Recording_20240501_233541_IOS_DatePicker-ezgif com-crop

isTransformationEnabled

Screen_Recording_20240501_234226_IOS_DatePicker_2-ezgif com-crop


Usage


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*/
	}
)

Parameters

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]


Implementation Gradle

Add it in your root build.gradle at the end of repositories:
	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}
Add the dependency
	dependencies {
	        implementation 'com.github.KDW03:IOS_DATEPICKER:1.0.3'
	}

About

IOS ์Šคํƒ€์ผ SpinnerDatePicker ๐Ÿ—“๏ธ

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages