Skip to content

Conversation

@ljdongz
Copy link
Collaborator

@ljdongz ljdongz commented Apr 14, 2025

#️⃣ 연관된 이슈

📝 작업 내용

macOS에서 표현될 메인 화면을 틀만 잡아서 간단하게 구현했습니다.

🎨 스크린샷

기능 스크린샷
화면

💬 추가 설명

기본 컴포넌트로 초기 계획했던 디자인(상단 툴바)을 구현하는 데 어려움이 있어 현재는 일단 기본 컴포넌트로 간단하게 구현해보았고,
후에 커스텀으로 변경할지, 기본 컴포넌트로 진행할 지 고민할 예정입니다.

@ljdongz ljdongz requested a review from f-lab-barry April 14, 2025 05:59
@ljdongz ljdongz self-assigned this Apr 14, 2025
@ljdongz ljdongz linked an issue Apr 14, 2025 that may be closed by this pull request
@ljdongz ljdongz changed the base branch from develop to Chore/#1 April 14, 2025 13:17
.foregroundStyle(.blue)

Button(action: {

Choose a reason for hiding this comment

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

// TODO: 구현 예정

import SwiftUI
import DesignSystem

private struct ViewConstants {

Choose a reason for hiding this comment

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

const 정의할 때 struct와 enum 으로 할 수 있음
enum이 더 성능적으로 유리한데 그 이유가 뭘까요?


struct LinkListView: View {
let cellWidth: CGFloat = ViewConstants.cellWidth
let cellHeight = ViewConstants.cellHeight

Choose a reason for hiding this comment

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

통일성 있게 부탁드려요~

Choose a reason for hiding this comment

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

private이 아닌 이유가 있을까요?

Comment on lines 24 to 29
let width = geometry.size.width
let numberOfColumns = max(
Int((width + spacing) / (cellWidth + spacing)),
1
)

Choose a reason for hiding this comment

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

클로저 내부의 응집도나, solid 원칙 (단일책임원칙 등)을 잘 준수하는 코드가 맞을지 고민해보면서 리팩토링 해보면 좋을 것 같아요~

Base automatically changed from Chore/#1 to develop April 14, 2025 14:45
@sonarqubecloud
Copy link

@ljdongz ljdongz merged commit 5c79f36 into develop Apr 14, 2025
2 checks passed
@ljdongz ljdongz deleted the feature/#3 branch April 14, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] macOS 메인 화면 구현

3 participants