Skip to content
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

홈 화면의 Tabbar를 정의해 보았습니다. #10

Merged
merged 7 commits into from
Jul 3, 2024

Conversation

GeonH0
Copy link
Collaborator

@GeonH0 GeonH0 commented Jun 24, 2024

|||

  • 중앙에 addButton을 만들어 카페 레시피를 등록할건지 디저트 레시피를 만들건지 선택한후 선택시 업로드 하는 화면으로 넘어갑니다.
  • tag 0 은 레시피들이 보이는 화면이고 tag1은 추후 즐겨찾기를 시도한다면 만들 화면입니다.


private func setupButton() {
addButton.backgroundColor = .blue
addButton.setTitle("+", for: .normal)

Choose a reason for hiding this comment

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

타이틀 폰트 더 키울 수 있나요~? 스크린샷보니 좀 작아보여서요!

Copy link
Collaborator Author

@GeonH0 GeonH0 Jun 25, 2024

Choose a reason for hiding this comment

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

[eaa4f9c] 수정했습니다

addButton.backgroundColor = .blue
addButton.setTitle("+", for: .normal)
addButton.setTitleColor(.white, for: .normal)
addButton.layer.cornerRadius = 32

Choose a reason for hiding this comment

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

addButton의 size를 정의해두고 해당 사이즈의 height * 0.5를 해서 넣어주는건 어때요?
버튼 사이즈 따라가는게 안정적일 것 같아서요~

Copy link
Collaborator Author

@GeonH0 GeonH0 Jun 25, 2024

Choose a reason for hiding this comment

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

[5cd2dd9] 수정했습니다

Comment on lines 35 to 39
let networkService = DefaultRecipeFetchService(networkService: baseneworkServie)
let repository = DefaultFeedListRepository(networkService: networkService)
let searchrepository = DefaultSearchFeedRepository(networkService: networkService)
let fetchFeedListUseCase = DefaultFetchFeedListUseCase(repository: repository)
let searchFeedListUsecase = DefaultSearchFeedListUseCase(repository: searchrepository)

Choose a reason for hiding this comment

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

언제 이렇게 프리픽스로 Default가 붙었죠..?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

RecipeListViewController의 interactor를 주기 위해 넣었습니다

Choose a reason for hiding this comment

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

이 부분은 슬랙에서 더 이야기해요.

@objc private func didTapActionButton() {
let alert = UIAlertController(title: "게시물 작성", message: "어떤 게시물을 작성하실 건가요?", preferredStyle: .actionSheet)
alert.addAction(UIAlertAction(title: "Coffee", style: .default, handler: { [weak self] _ in
guard let self = self else { return }

Choose a reason for hiding this comment

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

guard let self else { return } 로도 가능해요

Copy link
Collaborator Author

@GeonH0 GeonH0 Jun 25, 2024

Choose a reason for hiding this comment

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

[087f6e1] 수정했습니다

@GeonH0 GeonH0 force-pushed the feature/MainTabbarView branch from c21f500 to 20cd42f Compare June 25, 2024 11:18
@GeonH0 GeonH0 force-pushed the feature/MainTabbarView branch from 6b513d0 to 087f6e1 Compare June 25, 2024 13:53
@@ -10,7 +10,8 @@ import UIKit
class MainTabBarController: UITabBarController, UITabBarControllerDelegate {

private let addButton = UIButton(type: .custom)

private let buttonSize: CGFloat = 64

Choose a reason for hiding this comment

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

Suggested change
private let buttonSize: CGFloat = 64
private let buttonSize = CGSize(all: 64.0)

Choose a reason for hiding this comment

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

size 네이밍에 맞춰서 부탁드리고, 버튼에 사이즈 넣어줄 때도 이 값을 사용하도록 수정부탁드려요.

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

[d76a2a2],[fc347c4]
적용했습니다!

Copy link

@f-lab-barry f-lab-barry left a comment

Choose a reason for hiding this comment

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

Default만 확인해주세요

Copy link

sonarqubecloud bot commented Jul 3, 2024

@GeonH0
Copy link
Collaborator Author

GeonH0 commented Jul 3, 2024

3611d8b
변경했습니다!

@GeonH0 GeonH0 merged commit 57475e0 into main Jul 3, 2024
2 checks passed
@GeonH0 GeonH0 deleted the feature/MainTabbarView branch September 12, 2024 01:00
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.

2 participants