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
import Cocoa | |
class ViewController: NSViewController,NSCollectionViewDelegate,NSCollectionViewDataSource,NSCollectionViewDelegateFlowLayout { | |
private let concurrentQueue = DispatchQueue(label: "calendarQueue", attributes: .concurrent) | |
//next 2 variables or speed and smoothness in loading | |
private var currentSection : Int! | |
private var currentOffset = 0 | |
private let calendar = Calendar.current |