From fe057d563cc50327e620c9c3007f4c75a9f8ddb2 Mon Sep 17 00:00:00 2001 From: RAFA Date: Sat, 18 Jan 2025 14:24:02 +0900 Subject: [PATCH] [Add] #51 - Add DateTimeSelection model for schedule feature --- .../Memento-iOS.xcodeproj/project.pbxproj | 1 + .../AddSchedule/Model/DateTimeSelection.swift | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Memento-iOS/Memento-iOS/Source/Presentation/Add/AddSchedule/Model/DateTimeSelection.swift diff --git a/Memento-iOS/Memento-iOS.xcodeproj/project.pbxproj b/Memento-iOS/Memento-iOS.xcodeproj/project.pbxproj index 01f2e6d..2acf407 100644 --- a/Memento-iOS/Memento-iOS.xcodeproj/project.pbxproj +++ b/Memento-iOS/Memento-iOS.xcodeproj/project.pbxproj @@ -40,6 +40,7 @@ Source/Component/NeonAnimationView.swift, Source/Data/MCalendarEventList.swift, Source/Data/MEventDataSource.swift, + Source/Presentation/Add/AddSchedule/Model/DateTimeSelection.swift, Source/Presentation/Add/AddSchedule/View/AddEventTitleView.swift, Source/Presentation/Add/AddSchedule/View/AddScheduleView.swift, Source/Presentation/Add/AddSchedule/ViewModel/AddEventTitleViewModel.swift, diff --git a/Memento-iOS/Memento-iOS/Source/Presentation/Add/AddSchedule/Model/DateTimeSelection.swift b/Memento-iOS/Memento-iOS/Source/Presentation/Add/AddSchedule/Model/DateTimeSelection.swift new file mode 100644 index 0000000..205bb30 --- /dev/null +++ b/Memento-iOS/Memento-iOS/Source/Presentation/Add/AddSchedule/Model/DateTimeSelection.swift @@ -0,0 +1,16 @@ +// +// DateTimeSelection.swift +// Memento-iOS +// +// Created by RAFA on 1/18/25. +// + +import Foundation + +struct DateTimeSelection: Equatable { + var startsDate: Date + var endsDate: Date + var isAllDay: Bool + var selectedStartTime: Date + var selectedEndTime: Date +}