[#179] iOS 17의 TodoListView의 searchable이 포커싱 될 때 툴바가 보이는 현상을 해결한다#180
[#179] iOS 17의 TodoListView의 searchable이 포커싱 될 때 툴바가 보이는 현상을 해결한다#180
Conversation
opficdev
commented
Mar 4, 2026
- closed iOS 17의 TodoListView의 searchable이 포커싱 될 때 툴바가 보이는 현상을 해결한다 #179
Summary of ChangesHello, 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! 이 Pull Request는 iOS 17에서 Highlights
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
|
There was a problem hiding this comment.
Code Review
이 PR은 iOS 17에서 searchable 사용 시 툴바가 계속 보이는 버그를 수정하는 것을 목표로 하고 있습니다. iOS 18 이상과 미만 버전에 대해 분기 처리를 하여 문제를 해결한 점이 인상적입니다. 코드 구조를 개선하고 불필요한 지역화 문자열을 제거하는 등 좋은 변경 사항들이 포함되어 있습니다. 다만, 리뷰 과정에서 몇 가지 잠재적인 문제점을 발견했습니다. iOS 버전 호환성과 관련된 오타 및 로직 오류가 있어 수정이 필요해 보입니다. 또한, 검색 기능의 사용자 경험이 의도치 않게 변경되었을 가능성이 있어 확인이 필요합니다. 자세한 내용은 각 코드 리뷰 댓글을 참고해주세요.
| if #available(iOS 26.0, *) { | ||
| ToolbarSpacer(.fixed, placement: .topBarTrailing) | ||
| } |
| .searchable( | ||
| text: Binding( | ||
| get: { viewModel.state.searchQuery }, | ||
| set: { viewModel.send(.setSearchQuery($0)) } | ||
| ), | ||
| isPresented: Binding( | ||
| get: { viewModel.state.isSearching }, | ||
| set: { viewModel.send(.setSearching($0)) } | ||
| ), | ||
| placement: .navigationBarDrawer(displayMode: .always), | ||
| prompt: "검색" | ||
| ) |
| if #available(iOS 18, *) { | ||
| ToolbarItem(placement: .topBarTrailing) { | ||
| Button { | ||
| viewModel.send(.setIsSearching(true)) | ||
| } label: { | ||
| Image(systemName: "magnifyingglass") | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.