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

[Feat] #459 - 일정 상세뷰 UI 구현 #463

Merged
merged 17 commits into from
Jan 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Chore] #459 - 더미데이터 추가
  • Loading branch information
yungu0010 committed Dec 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c6be09b8086bc53bc79366f7bd93f08fda5b004d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// CalendarDetailViewModel.swift
// HomeCalendarDetailViewModel.swift
// HomeFeatureDemo
//
// Created by 강윤서 on 12/12/24.
@@ -8,6 +8,49 @@

import Foundation

public class CalendarDetailViewModel {
import Core
import HomeFeatureInterface

struct CalendarDetail {
let date: String
let title: String
let isRecentSchedule: Bool
let type: DashBoardCalenderCategoryTagType
}


public class HomeCalendarDetailViewModel: HomeCalendarDetailViewModelType {

// TODO: - 서버 연결 필요

let calendarDetailList: [CalendarDetail] = [
CalendarDetail(date: "9월 28일 토요일", title: "OT", isRecentSchedule: false, type: .event),
CalendarDetail(date: "9월 28일 토요일", title: "1차 세미나", isRecentSchedule: false, type: .seminar),
CalendarDetail(date: "9월 28일 토요일", title: "2차 세미나", isRecentSchedule: false, type: .seminar),
CalendarDetail(date: "9월 28일 토요일", title: "3차 세미나", isRecentSchedule: true, type: .seminar),
CalendarDetail(date: "9월 28일 토요일", title: "4차 세미나", isRecentSchedule: false, type: .seminar),
CalendarDetail(date: "9월 28일 토요일", title: "5차 세미나", isRecentSchedule: false, type: .seminar),
CalendarDetail(date: "9월 28일 토요일", title: "6차 세미나", isRecentSchedule: false, type: .seminar),
CalendarDetail(date: "9월 28일 토요일", title: "7차 세미나", isRecentSchedule: false, type: .seminar),
CalendarDetail(date: "9월 28일 토요일", title: "8차 세미나", isRecentSchedule: false, type: .seminar)
]

// MARK: - Inputs

public struct Input { }

// MARK: - Outputs

public struct Output { }

// MARK: - initialization

public init() { }
}

extension HomeCalendarDetailViewModel {
public func transform(from input: Input, cancelBag: CancelBag) -> Output {
let output = Output()
return output
}
}