Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- SwiftUI
- JPA
- 이미지
- mac
- iOS16
- error
- 웹뷰
- 개발자
- geofencing
- Archive
- Code
- Realm
- darkmode
- Firebase
- window
- appstore
- Xcode
- IOS
- github
- Swift
- Session
- shorebird
- UIButton
- FLUTTER
- 한글
- 맥
- Apple
- rxswift
- MacOS
- Git
Archives
- Today
- Total
목록insert (1)
EEYatHo 앱 깎는 이야기
Swift ) AttributedString 에 이미지 넣기 - EEYatHo iOS
줄바꿈을 어떻게 구현해야할지 고려하지 않고 손쉽게 이미지를 텍스트 옆에 넣을 수 있다. attributedString 에 이미지를 넣는 것이다. 구현 ( with extension ) extension NSMutableAttributedString { func appendImage(image: UIImage, bounds: CGRect) { let imageAttachment = NSTextAttachment() imageAttachment.image = image imageAttachment.bounds = bounds self.append(NSAttributedString(attachment: imageAttachment)) } func insertImage(image: UIImage, bounds:..
iOS, Swift/Feature
2022. 10. 11. 14:02