This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ExtensionUIView.swift | |
// SimpleLoginWithFirebase | |
// | |
// Created by PRIYANS on 2/11/18. | |
// Copyright © 2018 PRIYANS. All rights reserved. | |
// | |
//TODO: Go to identity inspector after selecting button/image/label and Change the class like configurableButton/configurableImage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Date { | |
// Give startDate and endDate -> reurns an array of strings of dates inbetween to use in URL or anyother places where you can input String. | |
static func uppendDatesBetweenInterval(_ startDate: Date, _ endDate: Date) -> [String]{ | |
var dates = [String]() | |
var startDate = startDate | |
let calendar = Calendar.current | |
let fmt = DateFormatter() | |
fmt.dateFormat = "yyyy-MM-dd" | |
while startDate >= endDate { |