Skip to content

✨ 팝업에 링크 기능 추가#387

Merged
shp7724 merged 2 commits intomasterfrom
shp7724/popup-linkurl
Nov 7, 2025
Merged

✨ 팝업에 링크 기능 추가#387
shp7724 merged 2 commits intomasterfrom
shp7724/popup-linkurl

Conversation

@shp7724
Copy link
Contributor

@shp7724 shp7724 commented Nov 7, 2025

팝업 이미지를 탭하면 연결된 URL을 열 수 있도록 구현

Related: #336

팝업 이미지를 탭하면 연결된 URL을 열 수 있도록 구현
Copilot AI review requested due to automatic review settings November 7, 2025 14:46
@shp7724 shp7724 requested a review from a team as a code owner November 7, 2025 14:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds clickable link functionality to popup images. When a popup has an associated URL, tapping the image will open that URL in the browser.

Key Changes:

  • Added linkURL field to popup data models to store associated URLs
  • Implemented tap gesture handler on popup images that opens the link URL when available
  • Updated repository layer to parse and map link URLs from API responses

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
PopupView.swift Added tap gesture to popup image that opens link URL using application dependency
PopupAPIRepository.swift Updated API response mapping to include linkURL field from server
LiveDependencies.swift Updated preview data to include nil linkURL for test popup
ServerPopup.swift Added linkURL property to domain model
PopupModel.swift Added computed property to expose linkURL from ServerPopup

await application.open(linkURL)
}
}
}
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

The tap gesture lacks accessibility support. Consider adding .accessibilityHint() to inform screen reader users that the popup image is tappable and will open a link, and .accessibilityAddTraits(.isButton) to indicate it's an interactive element.

Suggested change
}
}
.accessibilityHint("이미지를 탭하면 링크가 열립니다.") // "Tapping the image will open a link."
.accessibilityAddTraits(.isButton)

Copilot uses AI. Check for mistakes.
스크린 리더 사용자를 위한 힌트 및 버튼 trait 추가
@shp7724 shp7724 merged commit 1287fa8 into master Nov 7, 2025
1 of 2 checks passed
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.

1 participant