[#145] 시트에 툴바를 통해 cancel, confirm 버튼을 구성한다#153
Conversation
opficdev
commented
Feb 27, 2026
- closed 시트에 툴바를 통해 cancel, confirm 버튼을 구성한다 #145
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! 이 PR은 시트(sheet)에 취소 및 확인 기능을 제공하는 재사용 가능한 툴바 컴포넌트를 도입하여 사용자 경험을 개선하고 UI 일관성을 높입니다. 기존 뷰에서 툴바 구현을 새로운 Highlights
Changelog
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
|
| } | ||
|
|
||
| var body: some ToolbarContent { | ||
| if #available(iOS 26.0, *) { |
There was a problem hiding this comment.
iOS 26.0 버전 체크는 현재 및 가까운 미래의 OS에서 항상 false를 반환하므로 else 블록의 코드만 실행됩니다. Button(role:)은 iOS 15.0부터 사용 가능하므로, 만약 iOS 버전을 기준으로 분기하려는 의도였다면 if #available(iOS 15.0, *)과 같이 더 낮은 버전으로 수정해야 합니다.
만약 visionOS를 지원하기 위한 코드라면, #if os(visionOS) 전처리기 매크로를 사용하거나 if #available(visionOS 1.0, *)으로 확인하는 것이 더 정확합니다. 다른 파일에서 glassEffect와 같은 visionOS 전용 API를 사용하는 것으로 보아 후자일 가능성이 높아 보입니다.
잘못된 버전 체크는 의도한 UI가 표시되지 않는 버그를 유발할 수 있으므로 수정이 필요합니다.
| if #available(iOS 26.0, *) { | |
| if #available(visionOS 1.0, *) { |
| shape: some Shape = .capsule, | ||
| color: Color = .clear) | ||
| -> some View { | ||
| if #available(iOS 26.0, *) { |
There was a problem hiding this comment.