Skip to content

Commit

Permalink
[Feat] #51 - TagView 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa-e1 committed Jan 18, 2025
1 parent 97efe53 commit 5c78980
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions Memento-iOS/Memento-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
Source/Presentation/Add/Common/Sheet/SheetHeaderView.swift,
Source/Presentation/Add/Common/Tag/Model/Tag.swift,
Source/Presentation/Add/Common/Tag/View/TagPickerSheetView.swift,
Source/Presentation/Add/Common/Tag/View/TagView.swift,
"Source/Presentation/Onboarding/View/Launch Screen.storyboard",
Source/Presentation/Onboarding/ViewModel/AuthViewModel.swift,
Source/Presentation/Onboarding/ViewModel/OnboardingViewModel.swift,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ struct AddScheduleView: View {
AddEventTitleView(viewModel: viewModel)
DateTimePickerView(viewModel: PickerButtonViewModel())
RepeatPickerView(viewModel: PickerButtonViewModel())
TagView()
Spacer()
enterButton
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//
// TagView.swift
// Memento-iOS
//
// Created by RAFA on 1/18/25.
//

import SwiftUI

import MDSKit

struct TagView: View {

// MARK: - Properties

@StateObject private var viewModel = PickerButtonViewModel(type: .tag)

// MARK: - Body

var body: some View {
HStack {
Text("Tag")
.applyFont(.body_r_16)
.foregroundStyle(Color.gray05)

Spacer()

TagPickerSheetView(viewModel: viewModel)
}
}
}

// MARK: - Preview

#Preview {
ZStack {
Color.gray10
.ignoresSafeArea()

TagView()
}
}

0 comments on commit 5c78980

Please sign in to comment.