티스토리 뷰

macOS, iOS

swift en-dash, em-dash

SweetDev 2019. 7. 30. 13:54

en-dash는 n과 같은 폭,

em-dash는 M과 같은 폭인 dash라고 한다.

 

서양인들 작명센스는...역시...

 

https://developer.apple.com/documentation/uikit/uitextinputtraits/2866013-smartdashestype?language=objc

 

smartDashesType - UITextInputTraits | Apple Developer Documentation

Instance Property smartDashesType The configuration state for smart dashes. DeclarationDiscussionUse this property to configure whether UIKit converts two hyphens into an en-dash and three hyphens into an em-dash automatically. The default value of this pr

developer.apple.com

 

hyphen 2개는 자동으로 en-dash로, 3개는 em-dash로 바꿔준다고 한다. 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/12   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함