Skip to content

[#636] macOS에서는 토스트가 상단에 뜨도록 수정한다#638

Merged
opficdev merged 1 commit into
developfrom
ui/#636-toast
Jun 23, 2026
Merged

[#636] macOS에서는 토스트가 상단에 뜨도록 수정한다#638
opficdev merged 1 commit into
developfrom
ui/#636-toast

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

Apple Silicon Mac 환경에서 토스트가 화면 하단이 아니라 상단에서 아래 방향으로 표시되도록 동작 분기

📝 작업 내용

📌 요약

  • 토스트 표시 위치를 실행 환경에 따라 결정하는 ToastPresentationPlacement 추가
  • iOS/iPadOS에서는 기존 하단 표시 유지
  • Mac 환경에서는 상단 정렬 및 아래 방향 표시 애니메이션 적용

🔍 상세

  • ToastHostModifier의 overlay alignment를 고정 .bottom에서 placement 기반 alignment로 변경
  • 토스트 표시 offset을 고정 -50에서 placement 기반 offset으로 변경
  • Mac 환경에서는 tab bar 보정용 bottom padding 미적용

📸 영상 / 이미지 (Optional)

image

@opficdev opficdev self-assigned this Jun 23, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces dynamic toast placement to support displaying toasts at the top when running as an iOS app on Mac. The review feedback suggests utilizing SwiftUI's @Environment(\.isiOSAppOnMac) instead of directly accessing ProcessInfo to improve testability and preview support, which also allows for the removal of the static current property.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread Application/DevLogPresentation/Sources/Common/Component/Toast.swift
Comment thread Application/DevLogPresentation/Sources/Common/Component/Toast.swift
@opficdev opficdev changed the title macOS에서는 토스트가 상단에 뜨도록 수정한다 [#636] macOS에서는 토스트가 상단에 뜨도록 수정한다 Jun 23, 2026
@opficdev opficdev merged commit bf54893 into develop Jun 23, 2026
6 checks passed
@opficdev opficdev deleted the ui/#636-toast branch June 23, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS에서는 토스트가 상단에 뜨도록 수정한다

1 participant