OTHERΒ·μ€‘μš”λ„ 6Β·2026. 08. 05.Β·Dev.to

Swift Protocols β€” The Art of Making Promises 🀝

── KO ──────────────────

μŠ€μœ„ν”„νŠΈ ν”„λ‘œν† μ½œμ— λŒ€ν•œ κ°œλ…κ³Ό ν™œμš© 방법을 μ„€λͺ…ν•©λ‹ˆλ‹€.

이 글은 μŠ€μœ„ν”„νŠΈ ν”„λ‘œν† μ½œμ˜ κΈ°λ³Έ κ°œλ…κ³Ό κ·Έ μ‚¬μš© 사둀λ₯Ό λ‹€λ£Ήλ‹ˆλ‹€. ν”„λ‘œν† μ½œμ„ 톡해 νƒ€μž…μ΄ μˆ˜ν–‰ν•  수 μžˆλŠ” μž‘μ—…μ„ μ •μ˜ν•  수 있으며, μ„ΈλΆ€ κ΅¬ν˜„μ— λŒ€ν•œ κ±±μ • 없이 μœ μ—°ν•œ μ½”λ“œλ₯Ό μž‘μ„±ν•  수 μžˆμŠ΅λ‹ˆλ‹€. μ˜ˆμ‹œμ™€ ν•¨κ»˜ ν”„λ‘œν† μ½œμ˜ 이점을 μ„€λͺ…ν•˜κ³ , κ°œλ°œμžλ“€μ΄ ν”„λ‘œν† μ½œμ„ ν™œμš©ν•˜μ—¬ 더 λ‚˜μ€ μ½”λ“œ ꡬ쑰λ₯Ό λ§Œλ“€ 수 μžˆλ„λ‘ μ•ˆλ‚΄ν•©λ‹ˆλ‹€.


── EN ──────────────────

This article explains the concept and usage of Swift protocols.

The article covers the fundamental concepts of Swift protocols and their use cases. It explains how protocols allow you to define what a type can do without worrying about its actual implementation, enabling more flexible code. By providing examples, it highlights the benefits of using protocols and guides developers in optimizing their code structure with this feature.

원문 보기 β†’λͺ©λ‘μœΌλ‘œ