Closed Seobe95 closed 7 months ago
PR 날릴 때 체크 리스트
어떤 종류의 PR인가요?
Issue Number: #149
메뉴 탭 컴포넌트를 구현했습니다. 재사용이 가능하도록 MenuTabModel 타입의 배열을 통해 사용할 수 있도록 구현했습니다.
MenuTabModel
struct MainSectionsView: View { @EnvironmentObject var mainMapViewModel: MainMapViewModel @Binding var sortDistance: Bool @State var selectedIndex = 0 var body: some View { NavigationStack { VStack { MenuTabBar( menus: [MenuTabModel(index: 0, image: "list.bullet.below.rectangle"), MenuTabModel(index: 1, image: "newspaper")], selectedIndex: $selectedIndex, fullWidth: UIScreen.main.bounds.width, spacing: 50, horizontalInset: 91.5) switch selectedIndex { case 0: MemoListView(sortDistance: $sortDistance) .environmentObject(mainMapViewModel) default: CommunityView() } } .background(Color.bgColor) } } }
https://github.com/APP-iOS3rd/PJ3T2_Mymory/assets/79817557/e1eda71b-5878-49cd-ba22-0e9c988a98d6
PR 가이드라인
PR Checklist
PR 날릴 때 체크 리스트
PR Type
어떤 종류의 PR인가요?
연관되는 issue 정보를 알려주세요
Issue Number: #149
PR 설명하기
메뉴 탭 컴포넌트를 구현했습니다. 재사용이 가능하도록
MenuTabModel
타입의 배열을 통해 사용할 수 있도록 구현했습니다.어떻게 작동하나요? code 기반으로 설명해주세요
MenuTabBar 파라미터
가능하다면 추가해주세요
변경 사항 스크린샷 혹은 화면 녹화
https://github.com/APP-iOS3rd/PJ3T2_Mymory/assets/79817557/e1eda71b-5878-49cd-ba22-0e9c988a98d6
기타 언급해야 할 사항들