-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature] macOS 메인 화면 구현 #4
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
Conversation
Mark-In/Sources/MainView.swift
Outdated
| .foregroundStyle(.blue) | ||
|
|
||
| Button(action: { | ||
|
|
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.
// TODO: 구현 예정
| import SwiftUI | ||
| import DesignSystem | ||
|
|
||
| private struct ViewConstants { |
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.
const 정의할 때 struct와 enum 으로 할 수 있음
enum이 더 성능적으로 유리한데 그 이유가 뭘까요?
|
|
||
| struct LinkListView: View { | ||
| let cellWidth: CGFloat = ViewConstants.cellWidth | ||
| let cellHeight = ViewConstants.cellHeight |
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.
통일성 있게 부탁드려요~
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.
private이 아닌 이유가 있을까요?
| let width = geometry.size.width | ||
| let numberOfColumns = max( | ||
| Int((width + spacing) / (cellWidth + spacing)), | ||
| 1 | ||
| ) | ||
|
|
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.
클로저 내부의 응집도나, solid 원칙 (단일책임원칙 등)을 잘 준수하는 코드가 맞을지 고민해보면서 리팩토링 해보면 좋을 것 같아요~
|



#️⃣ 연관된 이슈
close [Feature] macOS 메인 화면 구현 #3
[Chore] 모듈 분리 및 빌드 환경 분리 #1 작업에서 이어서 진행했습니다.
📝 작업 내용
macOS에서 표현될 메인 화면을 틀만 잡아서 간단하게 구현했습니다.
🎨 스크린샷
💬 추가 설명
기본 컴포넌트로 초기 계획했던 디자인(상단 툴바)을 구현하는 데 어려움이 있어 현재는 일단 기본 컴포넌트로 간단하게 구현해보았고,
후에 커스텀으로 변경할지, 기본 컴포넌트로 진행할 지 고민할 예정입니다.