-
Notifications
You must be signed in to change notification settings - Fork 0
[#120] HomeView의에서 WebView로 내비게이션 됐을 시 여러 UI 부분을 개선한다 #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7059f89
fix: 내비게이션바가 large 영역 크기를 먹고 있는 현상 해결
opficdev 2a77886
ui: SearchView와 동일한 height로 설정
opficdev a6737d8
ui: WebItemRow 컴포넌트화
opficdev 2a15baa
ui: 스크린에 꽉 차도록 개선
opficdev 8702f7f
ui: 웹페이지뷰로 내비게이션으로 넘어갔을 때 탭바가 안보이도록 개선
opficdev 74c03bb
style: 파일명 미스에 따른 수정
opficdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| // | ||
| // WebItemtRow.swift | ||
| // DevLog | ||
| // | ||
| // Created by Codex on 2/24/26. | ||
| // | ||
|
|
||
| import SwiftUI | ||
|
|
||
| struct WebItemtRow: View { | ||
| @Environment(\.sceneWidth) private var sceneWidth | ||
|
|
||
| let item: WebPageItem | ||
| let showsChevron: Bool | ||
|
|
||
| var body: some View { | ||
| HStack { | ||
| CacheableImage(url: item.imageURL) { | ||
| Image(systemName: "globe") | ||
| .resizable() | ||
| .scaledToFit() | ||
| } | ||
| .frame(width: sceneWidth / 10, height: sceneWidth / 10) | ||
| .clipShape(RoundedRectangle(cornerRadius: 10)) | ||
|
|
||
| VStack(alignment: .leading) { | ||
| Text(item.title) | ||
| .foregroundStyle(Color.primary) | ||
| .bold() | ||
| .multilineTextAlignment(.leading) | ||
| .lineLimit(2) | ||
| Text(item.displayURL) | ||
| .foregroundStyle(Color.accentColor) | ||
| .underline() | ||
| } | ||
| Spacer() | ||
| if showsChevron { | ||
| Image(systemName: "chevron.right") | ||
| .font(.caption2.bold()) | ||
| .foregroundStyle(.gray) | ||
| } | ||
| } | ||
| .padding(.vertical, 4) | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Struct 이름에 오타가 있는 것 같습니다.
WebItemtRow를WebItemRow로 수정하면 더 명확하고 일관성 있을 것 같습니다. 파일명(WebItemtRow.swift)과 폴더명(Componeent)에도 비슷한 오타가 있으니 함께 확인해보시면 좋겠습니다.