This commit is contained in:
Vladimir Dubovik
2024-11-15 18:36:51 +03:00
parent b65b061d95
commit 3670a0b01f
10 changed files with 279 additions and 35 deletions

View File

@ -0,0 +1,14 @@
//
// View+Extensions.swift
// Schedule ICTIS
//
// Created by G412 on 15.11.2024.
//
import SwiftUI
extension View {
func isSameDate(_ date1: Date, _ date2: Date) -> Bool {
return Calendar.current.isDate(date1, inSameDayAs: date2)
}
}