Basic Edit View and components
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// ColorExtension.swift
|
||||
// Nextcloud Cookbook iOS Client
|
||||
//
|
||||
// Created by Vincent Meilinger on 20.09.23.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
extension Color {
|
||||
public static var nextcloudBlue: Color {
|
||||
return Color("ncblue")
|
||||
}
|
||||
public static var backgroundHighlight: Color {
|
||||
return Color("backgroundHighlight")
|
||||
}
|
||||
}
|
||||
21
Nextcloud Cookbook iOS Client/Extensions/DateExtension.swift
Normal file
21
Nextcloud Cookbook iOS Client/Extensions/DateExtension.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// DateExtension.swift
|
||||
// Nextcloud Cookbook iOS Client
|
||||
//
|
||||
// Created by Vincent Meilinger on 29.09.23.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Date {
|
||||
static var zero: Date {
|
||||
let dateFormatter = DateFormatter()
|
||||
dateFormatter.dateFormat = "HH:mm"
|
||||
|
||||
if let date = dateFormatter.date(from:"00:00") {
|
||||
return date
|
||||
} else {
|
||||
return Date()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user