Search
Duplicate

Labels

A label is a static piece of text that people can read and often copy, but not edit.
레이블은 사용자가 읽고 복사할 수 있는 수정 불가능한 텍스트입니다.
Labels display text throughout the interface, in buttons, menu items, and views, helping people understand the current context and what they can do next.
레이블은 버튼, 메뉴 항목, 뷰 등의 인터페이스에서 사용자가 현재 컨텍스트를 이해하고 할 수 있는 행동들을 인식하는 데 도움을 줍니다.
The term label refers to uneditable text that can appear in various places. For example:
레이블이라는 단어는 다양한 곳에서 나타날 수 있는 수정 불가능한 텍스트라는 뜻입니다. 예를 들어,
Within a button, a label generally conveys what the button does, such as Edit, Cancel, or Send.
버튼의 레이블은 수정, 취소, 보내기 등 버튼의 역할을 설명합니다.
Within many lists, a label can describe each item, often accompanied by a symbol or an image.
리스트에서 레이블은 각 항목을 설명하는데, 이미지 또는 기호와 함께 쓰이기도 합니다.
Within a view, a label might provide additional context by introducing a control or describing a common action or task that people can perform in the view.
뷰에서 레이블은 사용자가 할 수 있는 일반적인 작업을 설명하거나 조작방법을 설명하는 등의 부가적인 기능을 합니다.
Developer note To display uneditable text, SwiftUI defines two components: Label and Text. SwiftUI는 Label 또는 Text를 이용해 수정 불가능한 텍스트를 보여줄 수 있습니다.
The guidance below can help you use a label to display text. In some cases, guidance for specific components — such as action buttonsmenus, and lists and tables — includes additional recommendations for using text.
아래 지침은 텍스트를 보여줄 때 레이블을 사용하는 방식을 알려줍니다. 가끔 특정한 컴포넌트에 대한 지침(action buttonsmenuslists and tables)은 추가적인 권장 방식이 있습니다.

Best practices

Use a label to display a small amount of text that people don’t need to edit. If you need to let people edit a small amount of text, use a text field. If you need to display a large amount of text, and optionally let people edit it, use a text view.
사용자가 수정할 필요 없는 적은 양의 텍스트를 나타낼 때 레이블을 사용하세요. 사용자가 적은 양의 텍스트를 수정해야 한다면,  text field를 사용하세요. 많은 양의 텍스트를 나타내고, 선택적으로 사용자가 수정하게 하려면 text view를 사용하세요.
Prefer system fonts. A label can display plain or styled text, and it supports Dynamic Type (where available) by default. If you adjust the style of a label or use custom fonts, make sure the text remains legible.
시스템 폰트를 선호해주세요. 레이블은 기본 또는 스타일이 적용된 텍스트를 나타낼 수 있고, 기본적으로 Dynamic Type을 지원하기도 합니다. 스타일을 적용하거나 커스텀 폰트를 사용한다면, 텍스트가 읽기 쉬워 보이는지 꼭 확인하세요.
Use system-provided label colors to communicate relative importance. The system defines four label colors that vary in appearance to help you give text different levels of visual importance. For additional guidance, see Color.
중요도를 나타내려면 시스템이 제공하는 레이블 컬러를 사용하세요. 시스템은 4개의 레이블 컬러를 제공하는데, 각기 다른 시각적 중요도를 나타냅니다. 지침은 Color를 참조하세요.
System color
Example usage
iOS, iPadOS, tvOS, visionOS
macOS
Label
Primary information
Secondary label
A subheading or supplemental text
Tertiary label
Text that describes an unavailable item or behavior
Quaternary label
Watermark text
Make useful label text selectable. If a label contains useful information — like an error message, a location, or an IP address — consider letting people select and copy it for pasting elsewhere.
의미있는 레이블의 텍스트가 선택 가능하도록 하세요. 레이블이 의미있는 정보를 가지고 있다면(에러 메시지, 장소, 또는 IP 주소 등등), 사용자가 선택하고 복사해 사용할 수 있도록 하세요.
No additional considerations for iOS, iPadOS, tvOS, or visionOS.

macOS

Developer note To display uneditable text in a label, use the isEditable property of NSTextField. 수정 불가능한 텍스트를 나타내려면, NSTextFieldisEditable 프로퍼티를 사용하세요.
Date and time text components (shown below on the left) display the current date, the current time, or a combination of both. You can configure a date text component to use a variety of formats, calendars, and time zones. A countdown timer text component (shown below on the right) displays a precise countdown or count-up timer. You can configure a timer text component to display its count value in a variety of formats.
왼쪽 아래의 날짜와 시간 컴포넌트는 현재 날짜, 현재 시간을 나타냅니다. 날짜 텍스트 컴포넌트는 다양한 포맷, 캘린더, 시간대를 사용하도록 설정할 수 있습니다. 오른쪽 아래의 카운트다운 타이머 텍스트 컴포넌트는 카운트다운 또는 카운트 업 타이머를 나타낼 수 있습니다. 타이머 텍스트 컴포넌트가 여러 형식으로 나타내도록 설정할 수 있습니다.
Date Label
Timer Label
When you use the system-provided date and timer text components, watchOS automatically adjusts the label’s presentation to fit the available space. The system also updates the content without further input from your app.
시스템이 제공하는 날짜나 타이머 텍스트 컴포넌트를 사용할 때, watchOS는 공간에 맞게 레이블의 표현 방식을 자동으로 변경합니다. 다른 조작 없이도 컴포넌트를 업데이트하기도 합니다.
Consider using date and timer components in complications. For design guidance, see Complications; for developer guidance, see Text.
컴플리케이션에 날짜와 타이머 컴포넌트를 사용하는 것을 고려해 보세요. 디자인 지침은 Complications, 개발자 지침은 Text를 참고하세요.
Label - SwiftUI
Text - SwiftUI
UILabel - UIKit
NSTextField - AppKit

Change log

작성 날짜
작성자
수정사항
2023/9/12
디온
초기 번역