Skip to content

Coil

AndroidCompose Multiplatform을 위한 이미지 로딩 라이브러리입니다. Coil은 다음과 같습니다:

  • 빠름: Coil은 메모리 및 디스크 캐싱, 이미지 다운샘플링, 요청 자동 일시 중지/취소 등 다양한 최적화를 수행합니다.
  • 가벼움: Coil은 Kotlin, Coroutines, Okio에만 의존하며 Google의 R8 코드 슈링커와 원활하게 작동합니다.
  • 사용하기 쉬움: Coil의 API는 Kotlin의 언어 기능을 활용하여 간결하고 최소한의 상용구(boilerplate)를 제공합니다.
  • 현대적: Coil은 Kotlin 우선(Kotlin-first)이며 Compose, Coroutines, Okio, OkHttp, Ktor를 포함한 최신 라이브러리와 상호 운용됩니다.

Coil은 다음의 약어입니다: Coroutine Image Loader.

Translations: 日本語, 한국어, Русский, Svenska, Türkçe, 中文, پارسی

빠른 시작

Compose 라이브러리와 네트워킹 라이브러리를 임포트하세요:

kotlin
implementation("io.coil-kt.coil3:coil-compose:3.3.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.3.0")

이미지를 로드하려면 AsyncImage 컴포저블(composable)을 사용하세요:

kotlin
AsyncImage(
    model = "https://example.com/image.jpg",
    contentDescription = null,
)

Coil의 전체 문서를 여기서 확인하세요.

라이선스

Copyright 2025 Coil Contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.