feat: 아티클 하이라이트 기능 구현 (커스텀 팔레트, 하이라이트 목록)#66
Conversation
gomminjae
commented
Feb 24, 2026
- 네이티브 iOS 메뉴 대신 JS 커스텀 플로팅 팔레트 구현 (5색 + 밑줄 + 삭제)
- 기존 하이라이트 탭 시 에디트 메뉴로 색상 변경/삭제 기능
- 하이라이트 목록 바텀시트 디자인 (nohighlight 에셋, 컬러바, lineTrash)
- 글자 크기 기본 20pt, 범위 15~25pt, 아웃라인 스타일 버튼
- 스크롤 최상단 버튼 추가
- 밑줄 색상 #EF4444, highlight-focused 색상 #2866D3 통일
- SwiftData 기반 하이라이트 저장/조회/삭제/타입변경
- 네이티브 iOS 메뉴 대신 JS 커스텀 플로팅 팔레트 구현 (5색 + 밑줄 + 삭제) - 기존 하이라이트 탭 시 에디트 메뉴로 색상 변경/삭제 기능 - 하이라이트 목록 바텀시트 디자인 (nohighlight 에셋, 컬러바, lineTrash) - 글자 크기 기본 20pt, 범위 15~25pt, 아웃라인 스타일 버튼 - 스크롤 최상단 버튼 추가 - 밑줄 색상 #EF4444, highlight-focused 색상 #2866D3 통일 - SwiftData 기반 하이라이트 저장/조회/삭제/타입변경 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary of ChangesHello @gomminjae, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 아티클 하이라이트 기능을 대폭 개선하여 사용자 경험을 향상시킵니다. 네이티브 iOS 메뉴 대신 커스텀 JavaScript 기반의 플로팅 팔레트를 도입하여 하이라이트 생성 및 편집을 더욱 유연하게 만들었으며, 하이라이트 목록 UI를 재설계하고 글꼴 크기 조절 및 스크롤 최상단 이동과 같은 편의 기능을 추가했습니다. 또한, SwiftData를 활용하여 하이라이트 데이터를 효율적으로 관리할 수 있도록 백엔드 로직을 강화했습니다. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
| { | ||
| "images" : [ | ||
| { | ||
| "filename" : "Icon Button.pdf", | ||
| "idiom" : "universal" | ||
| } | ||
| ], | ||
| "info" : { | ||
| "author" : "xcode", | ||
| "version" : 1 | ||
| } | ||
| } |
| // MARK: - Scroll Tracking | ||
|
|
||
| func scrollViewDidScroll(_ scrollView: UIScrollView) { | ||
| let shouldShow = scrollView.contentOffset.y > 200 |
| private var highlightColor: Color { | ||
| switch highlight.highlightType { | ||
| case "yellow": return Color(red: 1.0, green: 0.96, blue: 0.62) | ||
| case "pink": return Color(red: 0.97, green: 0.73, blue: 0.85) | ||
| case "green": return Color(red: 0.78, green: 0.90, blue: 0.79) | ||
| case "blue": return Color(red: 0.73, green: 0.87, blue: 0.98) | ||
| case "underline": return .clear | ||
| default: return .clear | ||
| case "yellow": return Color(hex: "#FBE96C") | ||
| case "orange": return Color(hex: "#FFC194") | ||
| case "pink": return Color(hex: "#F1B2C7") | ||
| case "green": return Color(hex: "#D7EDA1") | ||
| case "blue": return Color(hex: "#95D5EC") | ||
| case "underline": return Color(hex: "#EF4444") | ||
| default: return Color.gray.opacity(0.4) | ||
| } |
| RoundedRectangle(cornerRadius: highlight.highlightType == "underline" ? 1 : 3) | ||
| .fill(highlightColor) | ||
| .frame(width: highlight.highlightType == "underline" ? 2 : 6) |
| private func formatDate(_ date: Date) -> String { | ||
| let formatter = DateFormatter() | ||
| formatter.locale = Locale(identifier: "ko_KR") | ||
| formatter.dateFormat = "M월 d일 HH:mm" | ||
| formatter.dateFormat = "yyyy-MM-dd HH:mm" | ||
| return formatter.string(from: date) | ||
| } |
| palette.style.top = (menuTop < 10 ? rect.bottom + 8 : menuTop) + 'px'; | ||
| palette.style.left = Math.min(Math.max(rect.left + rect.width / 2, 120), window.innerWidth - 120) + 'px'; |
- TRASH_SVG, hlTypes 등 긴 줄 분리하여 line_length 해결 - ArticleHighlightJS enum body를 extension으로 분리하여 type_body_length 해결 - HighlightListView/HighlightRowView를 별도 파일로 분리하여 file_length 해결 - identifier_name (h → highlight), attributes 위반 수정 - highlight-underline CSS 줄바꿈 처리 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>