[
  {
    "path": ".gitignore",
    "content": "# macOS\n.DS_Store\n\n# Xcode\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata/\n*.xccheckout\nprofile\n*.moved-aside\nDerivedData\n*.hmap\n*.ipa\n\n# Bundler\n.bundle\n\n# Add this line if you want to avoid checking in source code from Carthage dependencies.\n# Carthage/Checkouts\n\nCarthage/Build\n\n# We recommend against adding the Pods directory to your .gitignore. However\n# you should judge for yourself, the pros and cons are mentioned at:\n# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control\n# \n# Note: if you ignore the Pods directory, make sure to uncomment\n# `pod install` in .travis.yml\n#\n# Pods/\nExample/Pods/\n"
  },
  {
    "path": ".travis.yml",
    "content": "# references:\n# * https://www.objc.io/issues/6-build-tools/travis-ci/\n# * https://github.com/supermarin/xcpretty#usage\n\nosx_image: xcode7.3\nlanguage: objective-c\n# cache: cocoapods\n# podfile: Example/Podfile\n# before_install:\n# - gem install cocoapods # Since Travis is not always on latest version\n# - pod install --project-directory=Example\nscript:\n- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SwiftUICalendar.xcworkspace -scheme SwiftUICalendar-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty\n- pod lib lint\n"
  },
  {
    "path": "Example/Podfile",
    "content": "use_frameworks!\n\nplatform :ios, '14.0'\n\ntarget 'SwiftUICalendar_Example' do\n  pod 'SwiftUICalendar', :path => '../'\n\n  target 'SwiftUICalendar_Tests' do\n    inherit! :search_paths\n\n    \n  end\nend\n"
  },
  {
    "path": "Example/SwiftUICalendar/AppDelegate.swift",
    "content": "//\n//  AppDelegate.swift\n//  SwiftUICalendar\n//\n//  Created by ggaljjak on 10/21/2021.\n//  Copyright (c) 2021 ggaljjak. All rights reserved.\n//\n\nimport UIKit\n\n@UIApplicationMain\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n\n    var window: UIWindow?\n\n\n    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {\n        // Override point for customization after application launch.\n        window = UIWindow()\n        window?.rootViewController = ViewController()\n        window?.makeKeyAndVisible()\n        return true\n    }\n\n    func applicationWillResignActive(_ application: UIApplication) {\n        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n        // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n    }\n\n    func applicationDidEnterBackground(_ application: UIApplication) {\n        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n    }\n\n    func applicationWillEnterForeground(_ application: UIApplication) {\n        // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n    }\n\n    func applicationDidBecomeActive(_ application: UIApplication) {\n        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n    }\n\n    func applicationWillTerminate(_ application: UIApplication) {\n        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n    }\n\n\n}\n\n"
  },
  {
    "path": "Example/SwiftUICalendar/Base.lproj/LaunchScreen.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"3.0\" toolsVersion=\"13771\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" colorMatched=\"YES\">\n    <device id=\"retina4_7\" orientation=\"portrait\">\n        <adaptation id=\"fullscreen\"/>\n    </device>\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"13772\"/>\n        <capability name=\"Constraints with non-1.0 multipliers\" minToolsVersion=\"5.1\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <placeholder placeholderIdentifier=\"IBFilesOwner\" id=\"-1\" userLabel=\"File's Owner\"/>\n        <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"-2\" customClass=\"UIResponder\"/>\n        <view contentMode=\"scaleToFill\" id=\"iN0-l3-epB\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"480\" height=\"480\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"  Copyright (c) 2015 CocoaPods. All rights reserved.\" textAlignment=\"center\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"9\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8ie-xW-0ye\">\n                    <rect key=\"frame\" x=\"20\" y=\"439\" width=\"441\" height=\"21\"/>\n                    <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"SwiftUICalendar\" textAlignment=\"center\" lineBreakMode=\"middleTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"18\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kId-c2-rCX\">\n                    <rect key=\"frame\" x=\"20\" y=\"140\" width=\"441\" height=\"43\"/>\n                    <fontDescription key=\"fontDescription\" type=\"boldSystem\" pointSize=\"36\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n            </subviews>\n            <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n            <constraints>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"centerY\" secondItem=\"iN0-l3-epB\" secondAttribute=\"bottom\" multiplier=\"1/3\" constant=\"1\" id=\"5cJ-9S-tgC\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"kId-c2-rCX\" secondAttribute=\"centerX\" id=\"Koa-jz-hwk\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"bottom\" constant=\"20\" id=\"Kzo-t9-V3l\"/>\n                <constraint firstItem=\"8ie-xW-0ye\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"MfP-vx-nX0\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"centerX\" id=\"ZEH-qu-HZ9\"/>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"fvb-Df-36g\"/>\n            </constraints>\n            <nil key=\"simulatedStatusBarMetrics\"/>\n            <freeformSimulatedSizeMetrics key=\"simulatedDestinationMetrics\"/>\n            <point key=\"canvasLocation\" x=\"548\" y=\"455\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "Example/SwiftUICalendar/BasicUseView.swift",
    "content": "//\n//  BasicUseView.swift\n//  SwiftUICalendar_Example\n//\n//  Created by GGJJack on 2021/10/21.\n//  Copyright © 2021 CocoaPods. All rights reserved.\n//\n\nimport Foundation\nimport SwiftUI\nimport SwiftUICalendar\n\nstruct BasicUseView: View {\n    \n    @ObservedObject var controller: CalendarController = CalendarController(orientation: .vertical)\n    \n    var body: some View {\n        GeometryReader { reader in\n            VStack(alignment: .center, spacing: 0) {\n                Text(\"\\(controller.yearMonth.monthShortString), \\(String(controller.yearMonth.year))\")\n                    .font(.title)\n                    .padding(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))\n                HStack(alignment: .center, spacing: 0) {\n                    ForEach(0..<7, id: \\.self) { i in\n                        Text(DateFormatter().shortWeekdaySymbols[i])\n                            .font(.headline)\n                            .frame(width: reader.size.width / 7)\n                    }\n                }\n                CalendarView(controller) { date in\n                    GeometryReader { geometry in\n                        ZStack(alignment: .center) {\n                            if date.isToday {\n                                Circle()\n                                    .padding(4)\n                                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                    .foregroundColor(.orange)\n                                Text(\"\\(date.day)\")\n                                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                    .font(.system(size: 10, weight: .bold, design: .default))\n                                    .foregroundColor(.white)\n                            } else {\n                                Text(\"\\(date.day)\")\n                                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                    .font(.system(size: 10, weight: .light, design: .default))\n                                    .foregroundColor(getColor(date))\n                                    .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                            }\n                        }\n                    }\n                }\n                .navigationBarTitle(\"Basic use\")\n            }\n        }\n    }\n    \n    private func getColor(_ date: YearMonthDay) -> Color {\n        if date.dayOfWeek == .sun {\n            return Color.red\n        } else if date.dayOfWeek == .sat {\n            return Color.blue\n        } else {\n            return Color.black\n        }\n    }\n}\n\nstruct BasicUseView_Previews: PreviewProvider {\n    static var previews: some View {\n        BasicUseView()\n    }\n}\n"
  },
  {
    "path": "Example/SwiftUICalendar/CalendarScrollView.swift",
    "content": "//\n//  HorizontalView.swift\n//  SwiftUICalendar_Example\n//\n//  Created by GGJJack on 2021/10/21.\n//  Copyright © 2021 CocoaPods. All rights reserved.\n//\n\nimport SwiftUI\nimport SwiftUICalendar\n\nstruct CalendarScrollView: View {\n    \n    @ObservedObject var controller: CalendarController = CalendarController()\n    \n    var body: some View {\n        GeometryReader { reader in\n            VStack(alignment: .center, spacing: 0) {\n                HStack(alignment: .center, spacing: 0) {\n                    Spacer()\n                    Button(\"Drag Lock\") {\n                        controller.isLocked = true\n                    }\n                    Spacer()\n                    Button(\"Drag Unlock\") {\n                        controller.isLocked = false\n                    }\n                    Spacer()\n                }\n                HStack(alignment: .center, spacing: 0) {\n                    Spacer()\n                    Button(\"Older\") {\n                        controller.scrollTo(YearMonth(year: 1000, month: 1), isAnimate: true)\n                    }\n                    Spacer()\n                    Button(\"Today Fast\") {\n                        controller.scrollTo(YearMonth.current, isAnimate: false)\n                    }\n                    Spacer()\n                    Button(\"Today Scroll\") {\n                        controller.scrollTo(YearMonth.current, isAnimate: true)\n                    }\n                    Spacer()\n                    Button(\"Future\") {\n                        controller.scrollTo(YearMonth(year: 3000, month: 1), isAnimate: true)\n                    }\n                    Spacer()\n                }\n                Text(\"\\(controller.yearMonth.monthShortString), \\(String(controller.yearMonth.year))\")\n                    .font(.title)\n                    .padding(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))\n                HStack(alignment: .center, spacing: 0) {\n                    ForEach(0..<7, id: \\.self) { i in\n                        Text(DateFormatter().shortWeekdaySymbols[i])\n                            .font(.headline)\n                            .frame(width: reader.size.width / 7)\n                    }\n                }\n                CalendarView(controller) { date in\n                    GeometryReader { geometry in\n                        Text(\"\\(date.day)\")\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                            .font(.system(size: 10, weight: .light, design: .default))\n                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                    }\n                }\n                .navigationBarTitle(\"Calendar Scroll\")\n                // .onChange(of: controller.yearMonth) { yearMonth in // If you want to detect date change\n                //     print(yearMonth)\n                // }\n            }\n        }\n    }\n}\n\nstruct CalendarScrollView_Previews: PreviewProvider {\n    static var previews: some View {\n        CalendarScrollView()\n    }\n}\n"
  },
  {
    "path": "Example/SwiftUICalendar/EmbedHeaderView.swift",
    "content": "//\n//  VerticalView.swift\n//  SwiftUICalendar_Example\n//\n//  Created by GGJJack on 2021/10/21.\n//  Copyright © 2021 CocoaPods. All rights reserved.\n//\n\nimport SwiftUI\nimport SwiftUICalendar\n\nstruct EmbedHeaderView: View {\n    \n    @ObservedObject var controller: CalendarController = CalendarController()\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack {\n                HStack(alignment: .center, spacing: 0) {\n                    Button(\"Prev\") {\n                        controller.scrollTo(controller.yearMonth.addMonth(value: -1), isAnimate: true)\n                    }\n                    .padding(8)\n                    Spacer()\n                    Text(\"\\(controller.yearMonth.monthShortString), \\(String(controller.yearMonth.year))\")\n                        .font(.title)\n                        .padding(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))\n                    Spacer()\n                    Button(\"Next\") {\n                        controller.scrollTo(controller.yearMonth.addMonth(value: 1), isAnimate: true)\n                    }\n                    .padding(8)\n                }\n                CalendarView(controller, header: { week in\n                    GeometryReader { geometry in\n                        Text(week.shortString)\n                            .font(.subheadline)\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                    }\n                }, component: { date in\n                    GeometryReader { geometry in\n                        Text(\"\\(date.day)\")\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                            .font(.system(size: 10, weight: .light, design: .default))\n                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                    }\n                })\n            }\n        }\n        .navigationBarTitle(\"Embed header\")\n    }\n}\n\nstruct EmbedHeaderView_Previews: PreviewProvider {\n    static var previews: some View {\n        EmbedHeaderView()\n    }\n}\n"
  },
  {
    "path": "Example/SwiftUICalendar/Images.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"ios-marketing\",\n      \"size\" : \"1024x1024\",\n      \"scale\" : \"1x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}\n"
  },
  {
    "path": "Example/SwiftUICalendar/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "Example/SwiftUICalendar/InformationView.swift",
    "content": "//\n//  InformationView.swift\n//  SwiftUICalendar_Example\n//\n//  Created by GGJJack on 2021/10/26.\n//  Copyright © 2021 CocoaPods. All rights reserved.\n//\n\nimport SwiftUI\nimport SwiftUICalendar\n\nstruct InformationView: View {\n    \n    var informations = [YearMonthDay: [(String, Color)]]()\n    \n    init() {\n        var date = YearMonthDay.current\n        informations[date] = []\n        informations[date]?.append((\"Hello\", Color.orange))\n        informations[date]?.append((\"World\", Color.blue))\n\n        date = date.addDay(value: 3)\n        informations[date] = []\n        informations[date]?.append((\"Test\", Color.pink))\n        \n        date = date.addDay(value: 8)\n        informations[date] = []\n        informations[date]?.append((\"Jack\", Color.green))\n        \n        date = date.addDay(value: 5)\n        informations[date] = []\n        informations[date]?.append((\"Home\", Color.red))\n\n        date = date.addDay(value: -23)\n        informations[date] = []\n        informations[date]?.append((\"Meet at 8, Home\", Color.purple))\n        \n        date = date.addDay(value: -5)\n        informations[date] = []\n        informations[date]?.append((\"Home\", Color.yellow))\n\n        date = date.addDay(value: -10)\n        informations[date] = []\n        informations[date]?.append((\"Baseball\", Color.green))\n    }\n\n    var body: some View {\n        GeometryReader { reader in\n            CalendarView(header: { week in\n                GeometryReader { geometry in\n                    Text(week.shortString)\n                        .font(.subheadline)\n                        .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                }\n            }, component: { date in\n                GeometryReader { geometry in\n                    VStack(alignment: .leading, spacing: 2) {\n                        if date.isToday {\n                            Text(\"\\(date.day)\")\n                                .font(.system(size: 10, weight: .bold, design: .default))\n                                .padding(4)\n                                .foregroundColor(.white)\n                                .background(Color.red.opacity(0.95))\n                                .cornerRadius(14)\n                        } else {\n                            Text(\"\\(date.day)\")\n                                .font(.system(size: 10, weight: .light, design: .default))\n                                .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                                .foregroundColor(getColor(date))\n                                .padding(4)\n                        }\n                        if let infos = informations[date] {\n                            ForEach(infos.indices, id: \\.self) { index in\n                                let info = infos[index]\n                                Text(info.0)\n                                    .lineLimit(1)\n                                    .foregroundColor(.white)\n                                    .font(.system(size: 8, weight: .bold, design: .default))\n                                    .padding(EdgeInsets(top: 2, leading: 4, bottom: 2, trailing: 4))\n                                    .frame(width: geometry.size.width, alignment: .center)\n                                    .background(info.1.opacity(0.75))\n                                    .cornerRadius(4)\n                                    .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                            }\n                        }\n                    }\n                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .topLeading)\n                }\n            })\n        }\n        .navigationBarTitle(\"Information\")\n    }\n    \n    private func getColor(_ date: YearMonthDay) -> Color {\n        if date.dayOfWeek == .sun {\n            return Color.red\n        } else if date.dayOfWeek == .sat {\n            return Color.blue\n        } else {\n            return Color.black\n        }\n    }\n}\n\nstruct InformationView_Previews: PreviewProvider {\n    static var previews: some View {\n        InformationView()\n    }\n}\n"
  },
  {
    "path": "Example/SwiftUICalendar/InformationWithSelectionView.swift",
    "content": "//\n//  InformationWithSelection.swift\n//  SwiftUICalendar_Example\n//\n//  Created by GGJJack on 2021/10/26.\n//  Copyright © 2021 CocoaPods. All rights reserved.\n//\n\nimport SwiftUI\nimport SwiftUICalendar\n\nstruct InformationWithSelectionView: View {\n    let controller = CalendarController()\n    var informations = [YearMonthDay: [(String, Color)]]()\n    @State var focusDate: YearMonthDay? = nil\n    @State var focusInfo: [(String, Color)]? = nil\n\n    init() {\n        var date = YearMonthDay.current\n        informations[date] = []\n        informations[date]?.append((\"Hello\", Color.orange))\n        informations[date]?.append((\"World\", Color.blue))\n\n        date = date.addDay(value: 3)\n        informations[date] = []\n        informations[date]?.append((\"Test\", Color.pink))\n        \n        date = date.addDay(value: 8)\n        informations[date] = []\n        informations[date]?.append((\"Jack\", Color.green))\n        \n        date = date.addDay(value: 5)\n        informations[date] = []\n        informations[date]?.append((\"Home\", Color.red))\n\n        date = date.addDay(value: -23)\n        informations[date] = []\n        informations[date]?.append((\"Meet at 8, Home\", Color.purple))\n        \n        date = date.addDay(value: -5)\n        informations[date] = []\n        informations[date]?.append((\"Home\", Color.yellow))\n\n        date = date.addDay(value: -10)\n        informations[date] = []\n        informations[date]?.append((\"Baseball\", Color.green))\n    }\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack {\n                CalendarView(controller, header: { week in\n                    GeometryReader { geometry in\n                        Text(week.shortString)\n                            .font(.subheadline)\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                    }\n                }, component: { date in\n                    GeometryReader { geometry in\n                        VStack(alignment: .leading, spacing: 2) {\n                            if date.isToday {\n                                Text(\"\\(date.day)\")\n                                    .font(.system(size: 10, weight: .bold, design: .default))\n                                    .padding(4)\n                                    .foregroundColor(.white)\n                                    .background(Color.red.opacity(0.95))\n                                    .cornerRadius(14)\n                            } else {\n                                Text(\"\\(date.day)\")\n                                    .font(.system(size: 10, weight: .light, design: .default))\n                                    .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                                    .foregroundColor(getColor(date))\n                                    .padding(4)\n                            }\n                            if let infos = informations[date] {\n                                ForEach(infos.indices, id: \\.self) { index in\n                                    let info = infos[index]\n                                    if focusInfo != nil {\n                                        Rectangle()\n                                            .fill(info.1.opacity(0.75))\n                                            .frame(width: geometry.size.width, height: 4, alignment: .center)\n                                            .cornerRadius(2)\n                                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                                    } else {\n                                        Text(info.0)\n                                            .lineLimit(1)\n                                            .foregroundColor(.white)\n                                            .font(.system(size: 8, weight: .bold, design: .default))\n                                            .padding(EdgeInsets(top: 2, leading: 4, bottom: 2, trailing: 4))\n                                            .frame(width: geometry.size.width, alignment: .center)\n                                            .background(info.1.opacity(0.75))\n                                            .cornerRadius(4)\n                                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                                    }\n                                }\n                            }\n                        }\n                        .frame(width: geometry.size.width, height: geometry.size.height, alignment: .topLeading)\n                        .border(.green.opacity(0.8), width: (focusDate == date ? 1 : 0))\n                        .cornerRadius(2)\n                        .contentShape(Rectangle())\n                        .onTapGesture {\n                            withAnimation {\n                                if focusDate == date {\n                                    focusDate = nil\n                                    focusInfo = nil\n                                } else {\n                                    focusDate = date\n                                    focusInfo = informations[date]\n                                }\n                            }\n                        }\n                    }\n                })\n                if let infos = focusInfo {\n                    List(infos.indices, id: \\.self) { index in\n                        let info = infos[index]\n                        HStack(alignment: .center, spacing: 0) {\n                            Circle()\n                                .fill(info.1.opacity(0.75))\n                                .frame(width: 12, height: 12)\n                            Text(info.0)\n                                .padding(.leading, 8)\n                        }\n                    }\n                    .frame(width: reader.size.width, height: 160, alignment: .center)\n                }\n            }\n        }\n        .navigationBarTitle(\"Info + Select\")\n    }\n    \n    private func getColor(_ date: YearMonthDay) -> Color {\n        if date.dayOfWeek == .sun {\n            return Color.red\n        } else if date.dayOfWeek == .sat {\n            return Color.blue\n        } else {\n            return Color.black\n        }\n    }\n}\n\nstruct InformationWithSelectionView_Previews: PreviewProvider {\n    static var previews: some View {\n        InformationWithSelectionView()\n    }\n}\n"
  },
  {
    "path": "Example/SwiftUICalendar/SelectionView.swift",
    "content": "//\n//  SelectionView.swift\n//  SwiftUICalendar_Example\n//\n//  Created by GGJJack on 2021/10/26.\n//  Copyright © 2021 CocoaPods. All rights reserved.\n//\n\nimport SwiftUI\nimport SwiftUICalendar\n\nstruct SelectionView: View {\n    @ObservedObject var controller: CalendarController = CalendarController()\n    @State var focusDate: YearMonthDay? = YearMonthDay.current\n    \n    var body: some View {\n        GeometryReader { reader in\n            VStack {\n                CalendarView(controller, header: { week in\n                    GeometryReader { geometry in\n                        Text(week.shortString)\n                            .font(.subheadline)\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                    }\n                }, component: { date in\n                    GeometryReader { geometry in\n                        Text(\"\\(date.day)\")\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                            .font(.system(size: 10, weight: .light, design: .default))\n                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                            .border(.green.opacity(0.8), width: (focusDate == date ? 1 : 0))\n                            .cornerRadius(2)\n                            .contentShape(Rectangle())\n                            .onTapGesture {\n                                focusDate = (date != focusDate ? date : nil)\n                            }\n                    }\n                })\n            }\n        }\n        .navigationBarTitle(\"Selection\")\n    }\n}\n\nstruct SelectionView_Previews: PreviewProvider {\n    static var previews: some View {\n        SelectionView()\n    }\n}\n"
  },
  {
    "path": "Example/SwiftUICalendar/StartWithMonday.swift",
    "content": "//\n//  StartWithMonday.swift\n//  SwiftUICalendar_Example\n//\n//  Created by Jack on 2023/04/19.\n//  Copyright © 2023 CocoaPods. All rights reserved.\n//\n\nimport Foundation\nimport SwiftUI\nimport SwiftUICalendar\n\nstruct StartWithMondayView: View {\n    \n    @ObservedObject var controller: CalendarController = CalendarController(orientation: .vertical)\n    \n    var body: some View {\n        GeometryReader { reader in\n            VStack(alignment: .center, spacing: 0) {\n                Text(\"\\(controller.yearMonth.monthShortString), \\(String(controller.yearMonth.year))\")\n                    .font(.title)\n                    .padding(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))\n                HStack(alignment: .center, spacing: 0) {\n                    ForEach(0..<7, id: \\.self) { i in\n                        Text(DateFormatter().shortWeekdaySymbols[(i + 1) % 7])\n                            .font(.headline)\n                            .frame(width: reader.size.width / 7)\n                    }\n                }\n                CalendarView(controller, startWithMonday: true) { date in\n                    GeometryReader { geometry in\n                        ZStack(alignment: .center) {\n                            if date.isToday {\n                                Circle()\n                                    .padding(4)\n                                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                    .foregroundColor(.orange)\n                                Text(\"\\(date.day)\")\n                                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                    .font(.system(size: 10, weight: .bold, design: .default))\n                                    .foregroundColor(.white)\n                            } else {\n                                Text(\"\\(date.day)\")\n                                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                    .font(.system(size: 10, weight: .light, design: .default))\n                                    .foregroundColor(getColor(date))\n                                    .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                            }\n                        }\n                    }\n                }\n                .navigationBarTitle(\"Start With Monday\")\n            }\n        }\n    }\n    \n    private func getColor(_ date: YearMonthDay) -> Color {\n        if date.dayOfWeek == .sun {\n            return Color.red\n        } else if date.dayOfWeek == .sat {\n            return Color.blue\n        } else {\n            return Color.black\n        }\n    }\n}\n\nstruct StartWithMondayView_Previews: PreviewProvider {\n    static var previews: some View {\n        StartWithMondayView()\n    }\n}\n"
  },
  {
    "path": "Example/SwiftUICalendar/ViewController.swift",
    "content": "//\n//  ViewController.swift\n//  SwiftUICalendar\n//\n//  Created by ggaljjak on 10/21/2021.\n//  Copyright (c) 2021 ggaljjak. All rights reserved.\n//\n\nimport UIKit\nimport SwiftUI\nimport SwiftUICalendar\n\nstruct MainView: View {\n    @State var defaultProgress: CGFloat = 0\n    var body: some View {\n        NavigationView {\n            List {\n                NavigationLink(destination: BasicUseView()) {\n                    Text(\"Basic use\")\n                }\n                NavigationLink(destination: StartWithMondayView()) {\n                    Text(\"Start With Monday\")\n                }\n                NavigationLink(destination: CalendarScrollView()) {\n                    Text(\"Calendar Scroll\")\n                }\n                NavigationLink(destination: EmbedHeaderView()) {\n                    Text(\"Embed Header\")\n                }\n                NavigationLink(destination: InformationView()) {\n                    Text(\"Information\")\n                }\n                NavigationLink(destination: SelectionView()) {\n                    Text(\"Selection\")\n                }\n                NavigationLink(destination: InformationWithSelectionView()) {\n                    Text(\"Information + Selection\")\n                }\n            }\n            .navigationBarTitle(\"Home\")\n        }\n    }\n}\n\nstruct MainView_Previews: PreviewProvider {\n    static var previews: some View {\n        MainView()\n            .previewDevice(PreviewDevice(rawValue: \"iPod touch (7th generation)\"))\n        MainView()\n            .previewDevice(PreviewDevice(rawValue: \"iPhone 12 Pro\"))\n    }\n}\n\nclass ViewController: UIViewController {\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        \n        let contentViewController = UIHostingController(rootView: MainView())\n        self.addChildViewController(contentViewController)\n        self.view.addSubview(contentViewController.view)\n        contentViewController.view.translatesAutoresizingMaskIntoConstraints = false\n        contentViewController.view.topAnchor.constraint(equalTo: view.topAnchor).isActive = true\n        contentViewController.view.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true\n        contentViewController.view.leftAnchor.constraint(equalTo: view.leftAnchor).isActive = true\n        contentViewController.view.rightAnchor.constraint(equalTo: view.rightAnchor).isActive = true\n    }\n    \n    override func didReceiveMemoryWarning() {\n        super.didReceiveMemoryWarning()\n        // Dispose of any resources that can be recreated.\n    }\n    \n}\n\n"
  },
  {
    "path": "Example/SwiftUICalendar.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t0497427029EFC72800146307 /* StartWithMonday.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0497426F29EFC72800146307 /* StartWithMonday.swift */; };\n\t\t2F1877712727964400A6987F /* InformationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F1877702727964400A6987F /* InformationView.swift */; };\n\t\t2F1877812727E8E300A6987F /* InformationWithSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F1877802727E8E300A6987F /* InformationWithSelectionView.swift */; };\n\t\t2F41278A2721092300336C8C /* BasicUseView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F4127892721092300336C8C /* BasicUseView.swift */; };\n\t\t2F41278C2721092F00336C8C /* CalendarScrollView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F41278B2721092F00336C8C /* CalendarScrollView.swift */; };\n\t\t2F41278E2721093800336C8C /* EmbedHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F41278D2721093800336C8C /* EmbedHeaderView.swift */; };\n\t\t2F8BE219272787B500410651 /* SelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F8BE218272787B500410651 /* SelectionView.swift */; };\n\t\t607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };\n\t\t607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };\n\t\t607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; };\n\t\t607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; };\n\t\t607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };\n\t\t70CF4A532162E518B75370AB /* Pods_SwiftUICalendar_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 58AFC65DC1653690BF0B4F96 /* Pods_SwiftUICalendar_Tests.framework */; };\n\t\tF9DEDA2240F94F1B2C25BE97 /* Pods_SwiftUICalendar_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D9008D491DE126083E4B2C8 /* Pods_SwiftUICalendar_Example.framework */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 607FACC81AFB9204008FA782 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 607FACCF1AFB9204008FA782;\n\t\t\tremoteInfo = SwiftUICalendar;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t0497426F29EFC72800146307 /* StartWithMonday.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StartWithMonday.swift; sourceTree = \"<group>\"; };\n\t\t1529C6D412355F8136F54624 /* SwiftUICalendar.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SwiftUICalendar.podspec; path = ../SwiftUICalendar.podspec; sourceTree = \"<group>\"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };\n\t\t1D9008D491DE126083E4B2C8 /* Pods_SwiftUICalendar_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftUICalendar_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t2F1877702727964400A6987F /* InformationView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InformationView.swift; sourceTree = \"<group>\"; };\n\t\t2F1877802727E8E300A6987F /* InformationWithSelectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InformationWithSelectionView.swift; sourceTree = \"<group>\"; };\n\t\t2F4127892721092300336C8C /* BasicUseView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BasicUseView.swift; sourceTree = \"<group>\"; };\n\t\t2F41278B2721092F00336C8C /* CalendarScrollView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarScrollView.swift; sourceTree = \"<group>\"; };\n\t\t2F41278D2721093800336C8C /* EmbedHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmbedHeaderView.swift; sourceTree = \"<group>\"; };\n\t\t2F8BE218272787B500410651 /* SelectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectionView.swift; sourceTree = \"<group>\"; };\n\t\t38EF59E86D83726E53E33DAB /* Pods-SwiftUICalendar_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SwiftUICalendar_Example.debug.xcconfig\"; path = \"Target Support Files/Pods-SwiftUICalendar_Example/Pods-SwiftUICalendar_Example.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t49E4341B7693DD4DF7DF8F8B /* Pods-SwiftUICalendar_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SwiftUICalendar_Tests.release.xcconfig\"; path = \"Target Support Files/Pods-SwiftUICalendar_Tests/Pods-SwiftUICalendar_Tests.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t4BE1B68D119981658B8F8880 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = \"<group>\"; };\n\t\t58AFC65DC1653690BF0B4F96 /* Pods_SwiftUICalendar_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftUICalendar_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t5B3059F75A3DE1A9D86D0BDB /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = \"<group>\"; };\n\t\t5B5E9923C3A984B6A955ABFA /* Pods-SwiftUICalendar_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SwiftUICalendar_Example.release.xcconfig\"; path = \"Target Support Files/Pods-SwiftUICalendar_Example/Pods-SwiftUICalendar_Example.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t607FACD01AFB9204008FA782 /* SwiftUICalendar_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftUICalendar_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = \"<group>\"; };\n\t\t607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = \"<group>\"; };\n\t\t607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = \"<group>\"; };\n\t\t607FACE51AFB9204008FA782 /* SwiftUICalendar_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwiftUICalendar_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = \"<group>\"; };\n\t\tC61EDE4455EFAA021752CF52 /* Pods-SwiftUICalendar_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SwiftUICalendar_Tests.debug.xcconfig\"; path = \"Target Support Files/Pods-SwiftUICalendar_Tests/Pods-SwiftUICalendar_Tests.debug.xcconfig\"; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t607FACCD1AFB9204008FA782 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tF9DEDA2240F94F1B2C25BE97 /* Pods_SwiftUICalendar_Example.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t607FACE21AFB9204008FA782 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t70CF4A532162E518B75370AB /* Pods_SwiftUICalendar_Tests.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t2F4127882721091100336C8C /* Samples */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t2F4127892721092300336C8C /* BasicUseView.swift */,\n\t\t\t\t0497426F29EFC72800146307 /* StartWithMonday.swift */,\n\t\t\t\t2F41278B2721092F00336C8C /* CalendarScrollView.swift */,\n\t\t\t\t2F41278D2721093800336C8C /* EmbedHeaderView.swift */,\n\t\t\t\t2F1877702727964400A6987F /* InformationView.swift */,\n\t\t\t\t2F8BE218272787B500410651 /* SelectionView.swift */,\n\t\t\t\t2F1877802727E8E300A6987F /* InformationWithSelectionView.swift */,\n\t\t\t);\n\t\t\tname = Samples;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t607FACC71AFB9204008FA782 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t607FACF51AFB993E008FA782 /* Podspec Metadata */,\n\t\t\t\t607FACD21AFB9204008FA782 /* Example for SwiftUICalendar */,\n\t\t\t\t607FACE81AFB9204008FA782 /* Tests */,\n\t\t\t\t607FACD11AFB9204008FA782 /* Products */,\n\t\t\t\tD735737FD2A73A6B1F22FC49 /* Pods */,\n\t\t\t\tA4AA3BEDF5C84869028017DD /* Frameworks */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t607FACD11AFB9204008FA782 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t607FACD01AFB9204008FA782 /* SwiftUICalendar_Example.app */,\n\t\t\t\t607FACE51AFB9204008FA782 /* SwiftUICalendar_Tests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t607FACD21AFB9204008FA782 /* Example for SwiftUICalendar */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t2F4127882721091100336C8C /* Samples */,\n\t\t\t\t607FACD51AFB9204008FA782 /* AppDelegate.swift */,\n\t\t\t\t607FACD71AFB9204008FA782 /* ViewController.swift */,\n\t\t\t\t607FACDC1AFB9204008FA782 /* Images.xcassets */,\n\t\t\t\t607FACDE1AFB9204008FA782 /* LaunchScreen.xib */,\n\t\t\t\t607FACD31AFB9204008FA782 /* Supporting Files */,\n\t\t\t);\n\t\t\tname = \"Example for SwiftUICalendar\";\n\t\t\tpath = SwiftUICalendar;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t607FACD31AFB9204008FA782 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t607FACD41AFB9204008FA782 /* Info.plist */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t607FACE81AFB9204008FA782 /* Tests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t607FACEB1AFB9204008FA782 /* Tests.swift */,\n\t\t\t\t607FACE91AFB9204008FA782 /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = Tests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t607FACE91AFB9204008FA782 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t607FACEA1AFB9204008FA782 /* Info.plist */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t607FACF51AFB993E008FA782 /* Podspec Metadata */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t1529C6D412355F8136F54624 /* SwiftUICalendar.podspec */,\n\t\t\t\t5B3059F75A3DE1A9D86D0BDB /* README.md */,\n\t\t\t\t4BE1B68D119981658B8F8880 /* LICENSE */,\n\t\t\t);\n\t\t\tname = \"Podspec Metadata\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tA4AA3BEDF5C84869028017DD /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t1D9008D491DE126083E4B2C8 /* Pods_SwiftUICalendar_Example.framework */,\n\t\t\t\t58AFC65DC1653690BF0B4F96 /* Pods_SwiftUICalendar_Tests.framework */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tD735737FD2A73A6B1F22FC49 /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t38EF59E86D83726E53E33DAB /* Pods-SwiftUICalendar_Example.debug.xcconfig */,\n\t\t\t\t5B5E9923C3A984B6A955ABFA /* Pods-SwiftUICalendar_Example.release.xcconfig */,\n\t\t\t\tC61EDE4455EFAA021752CF52 /* Pods-SwiftUICalendar_Tests.debug.xcconfig */,\n\t\t\t\t49E4341B7693DD4DF7DF8F8B /* Pods-SwiftUICalendar_Tests.release.xcconfig */,\n\t\t\t);\n\t\t\tpath = Pods;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t607FACCF1AFB9204008FA782 /* SwiftUICalendar_Example */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget \"SwiftUICalendar_Example\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t04D346863701023EAABBF89E /* [CP] Check Pods Manifest.lock */,\n\t\t\t\t607FACCC1AFB9204008FA782 /* Sources */,\n\t\t\t\t607FACCD1AFB9204008FA782 /* Frameworks */,\n\t\t\t\t607FACCE1AFB9204008FA782 /* Resources */,\n\t\t\t\t1396D50E1BE49F9EF6FD06BA /* [CP] Embed Pods Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = SwiftUICalendar_Example;\n\t\t\tproductName = SwiftUICalendar;\n\t\t\tproductReference = 607FACD01AFB9204008FA782 /* SwiftUICalendar_Example.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t607FACE41AFB9204008FA782 /* SwiftUICalendar_Tests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget \"SwiftUICalendar_Tests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t06EB312F70CEF94784EC9BB4 /* [CP] Check Pods Manifest.lock */,\n\t\t\t\t607FACE11AFB9204008FA782 /* Sources */,\n\t\t\t\t607FACE21AFB9204008FA782 /* Frameworks */,\n\t\t\t\t607FACE31AFB9204008FA782 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t607FACE71AFB9204008FA782 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = SwiftUICalendar_Tests;\n\t\t\tproductName = Tests;\n\t\t\tproductReference = 607FACE51AFB9204008FA782 /* SwiftUICalendar_Tests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t607FACC81AFB9204008FA782 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 0830;\n\t\t\t\tLastUpgradeCheck = 0830;\n\t\t\t\tORGANIZATIONNAME = CocoaPods;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t607FACCF1AFB9204008FA782 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.3.1;\n\t\t\t\t\t\tLastSwiftMigration = 0900;\n\t\t\t\t\t};\n\t\t\t\t\t607FACE41AFB9204008FA782 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.3.1;\n\t\t\t\t\t\tLastSwiftMigration = 0900;\n\t\t\t\t\t\tTestTargetID = 607FACCF1AFB9204008FA782;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject \"SwiftUICalendar\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\tEnglish,\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 607FACC71AFB9204008FA782;\n\t\t\tproductRefGroup = 607FACD11AFB9204008FA782 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t607FACCF1AFB9204008FA782 /* SwiftUICalendar_Example */,\n\t\t\t\t607FACE41AFB9204008FA782 /* SwiftUICalendar_Tests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t607FACCE1AFB9204008FA782 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,\n\t\t\t\t607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t607FACE31AFB9204008FA782 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t04D346863701023EAABBF89E /* [CP] Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t\t\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\",\n\t\t\t\t\"${PODS_ROOT}/Manifest.lock\",\n\t\t\t);\n\t\t\tname = \"[CP] Check Pods Manifest.lock\";\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t\t\"$(DERIVED_FILE_DIR)/Pods-SwiftUICalendar_Example-checkManifestLockResult.txt\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [ $? != 0 ] ; then\\n    # print error to STDERR\\n    echo \\\"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\\" >&2\\n    exit 1\\nfi\\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\\necho \\\"SUCCESS\\\" > \\\"${SCRIPT_OUTPUT_FILE_0}\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t06EB312F70CEF94784EC9BB4 /* [CP] Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t\t\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\",\n\t\t\t\t\"${PODS_ROOT}/Manifest.lock\",\n\t\t\t);\n\t\t\tname = \"[CP] Check Pods Manifest.lock\";\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t\t\"$(DERIVED_FILE_DIR)/Pods-SwiftUICalendar_Tests-checkManifestLockResult.txt\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [ $? != 0 ] ; then\\n    # print error to STDERR\\n    echo \\\"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\\" >&2\\n    exit 1\\nfi\\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\\necho \\\"SUCCESS\\\" > \\\"${SCRIPT_OUTPUT_FILE_0}\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t1396D50E1BE49F9EF6FD06BA /* [CP] Embed Pods Frameworks */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-SwiftUICalendar_Example/Pods-SwiftUICalendar_Example-frameworks.sh\",\n\t\t\t\t\"${BUILT_PRODUCTS_DIR}/SwiftUICalendar/SwiftUICalendar.framework\",\n\t\t\t);\n\t\t\tname = \"[CP] Embed Pods Frameworks\";\n\t\t\toutputPaths = (\n\t\t\t\t\"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftUICalendar.framework\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${PODS_ROOT}/Target Support Files/Pods-SwiftUICalendar_Example/Pods-SwiftUICalendar_Example-frameworks.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t607FACCC1AFB9204008FA782 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t2F1877712727964400A6987F /* InformationView.swift in Sources */,\n\t\t\t\t2F1877812727E8E300A6987F /* InformationWithSelectionView.swift in Sources */,\n\t\t\t\t2F41278E2721093800336C8C /* EmbedHeaderView.swift in Sources */,\n\t\t\t\t2F41278C2721092F00336C8C /* CalendarScrollView.swift in Sources */,\n\t\t\t\t0497427029EFC72800146307 /* StartWithMonday.swift in Sources */,\n\t\t\t\t2F41278A2721092300336C8C /* BasicUseView.swift in Sources */,\n\t\t\t\t607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,\n\t\t\t\t607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,\n\t\t\t\t2F8BE219272787B500410651 /* SelectionView.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t607FACE11AFB9204008FA782 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t607FACEC1AFB9204008FA782 /* Tests.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t607FACE71AFB9204008FA782 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 607FACCF1AFB9204008FA782 /* SwiftUICalendar_Example */;\n\t\t\ttargetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t607FACDF1AFB9204008FA782 /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t607FACED1AFB9204008FA782 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 14.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t607FACEE1AFB9204008FA782 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 14.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Owholemodule\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t607FACF01AFB9204008FA782 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 38EF59E86D83726E53E33DAB /* Pods-SwiftUICalendar_Example.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = SwiftUICalendar/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 14.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tMODULE_NAME = ExampleApp;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_SWIFT3_OBJC_INFERENCE = Default;\n\t\t\t\tSWIFT_VERSION = 4.0;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t607FACF11AFB9204008FA782 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 5B5E9923C3A984B6A955ABFA /* Pods-SwiftUICalendar_Example.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = SwiftUICalendar/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 14.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tMODULE_NAME = ExampleApp;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_SWIFT3_OBJC_INFERENCE = Default;\n\t\t\t\tSWIFT_VERSION = 4.0;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t607FACF31AFB9204008FA782 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = C61EDE4455EFAA021752CF52 /* Pods-SwiftUICalendar_Tests.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(PLATFORM_DIR)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = Tests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_SWIFT3_OBJC_INFERENCE = Default;\n\t\t\t\tSWIFT_VERSION = 4.0;\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/SwiftUICalendar_Example.app/SwiftUICalendar_Example\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t607FACF41AFB9204008FA782 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 49E4341B7693DD4DF7DF8F8B /* Pods-SwiftUICalendar_Tests.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(PLATFORM_DIR)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = Tests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_SWIFT3_OBJC_INFERENCE = Default;\n\t\t\t\tSWIFT_VERSION = 4.0;\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/SwiftUICalendar_Example.app/SwiftUICalendar_Example\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject \"SwiftUICalendar\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t607FACED1AFB9204008FA782 /* Debug */,\n\t\t\t\t607FACEE1AFB9204008FA782 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget \"SwiftUICalendar_Example\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t607FACF01AFB9204008FA782 /* Debug */,\n\t\t\t\t607FACF11AFB9204008FA782 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget \"SwiftUICalendar_Tests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t607FACF31AFB9204008FA782 /* Debug */,\n\t\t\t\t607FACF41AFB9204008FA782 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 607FACC81AFB9204008FA782 /* Project object */;\n}\n"
  },
  {
    "path": "Example/SwiftUICalendar.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:SwiftUICalendar.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "Example/SwiftUICalendar.xcodeproj/xcshareddata/xcschemes/SwiftUICalendar-Example.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0900\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"607FACCF1AFB9204008FA782\"\n               BuildableName = \"SwiftUICalendar_Example.app\"\n               BlueprintName = \"SwiftUICalendar_Example\"\n               ReferencedContainer = \"container:SwiftUICalendar.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"NO\"\n            buildForArchiving = \"NO\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"607FACE41AFB9204008FA782\"\n               BuildableName = \"SwiftUICalendar_Tests.xctest\"\n               BlueprintName = \"SwiftUICalendar_Tests\"\n               ReferencedContainer = \"container:SwiftUICalendar.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      language = \"\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"607FACE41AFB9204008FA782\"\n               BuildableName = \"SwiftUICalendar_Tests.xctest\"\n               BlueprintName = \"SwiftUICalendar_Tests\"\n               ReferencedContainer = \"container:SwiftUICalendar.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"607FACCF1AFB9204008FA782\"\n            BuildableName = \"SwiftUICalendar_Example.app\"\n            BlueprintName = \"SwiftUICalendar_Example\"\n            ReferencedContainer = \"container:SwiftUICalendar.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      language = \"\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"607FACCF1AFB9204008FA782\"\n            BuildableName = \"SwiftUICalendar_Example.app\"\n            BlueprintName = \"SwiftUICalendar_Example\"\n            ReferencedContainer = \"container:SwiftUICalendar.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"607FACCF1AFB9204008FA782\"\n            BuildableName = \"SwiftUICalendar_Example.app\"\n            BlueprintName = \"SwiftUICalendar_Example\"\n            ReferencedContainer = \"container:SwiftUICalendar.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "Example/SwiftUICalendar.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:SwiftUICalendar.xcodeproj\">\n   </FileRef>\n   <FileRef\n      location = \"group:Pods/Pods.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "Example/SwiftUICalendar.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "Example/Tests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Example/Tests/Tests.swift",
    "content": "import XCTest\nimport SwiftUICalendar\n\nclass Tests: XCTestCase {\n    \n    override func setUp() {\n        super.setUp()\n        // Put setup code here. This method is called before the invocation of each test method in the class.\n    }\n    \n    override func tearDown() {\n        // Put teardown code here. This method is called after the invocation of each test method in the class.\n        super.tearDown()\n    }\n    \n    func testExample() {\n        // This is an example of a functional test case.\n        XCTAssert(true, \"Pass\")\n    }\n    \n    func testPerformanceExample() {\n        // This is an example of a performance test case.\n        self.measure() {\n            // Put the code you want to measure the time of here.\n        }\n    }\n    \n}\n"
  },
  {
    "path": "LICENSE",
    "content": "Copyright (c) 2021 ggaljjak <hyojong6367@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "Package.swift",
    "content": "// swift-tools-version:5.5\n// The swift-tools-version declares the minimum version of Swift required to build this package.\n\nimport PackageDescription\n\nlet package = Package(\n    name: \"SwiftUICalendar\",\n    platforms: [.iOS(.v14)],\n    //, .macOS(???)\n    products: [\n        // Products define the executables and libraries a package produces, and make them visible to other packages.\n        .library(\n            name: \"SwiftUICalendar\",\n            targets: [\"SwiftUICalendar\"]),\n    ],\n    dependencies: [\n        // Dependencies declare other packages that this package depends on.\n        // .package(url: /* package url */, from: \"1.0.0\"),\n    ],\n    targets: [\n        // Targets are the basic building blocks of a package. A target can define a module or a test suite.\n        // Targets can depend on other targets in this package, and on products in packages this package depends on.\n        .target(\n            name: \"SwiftUICalendar\",\n            dependencies: [],\n            path: \"Sources/SwiftUICalendar/Classes\"\n        ),\n        //.testTarget(\n        //    name: \"SwiftUICalendarTests\",\n        //    dependencies: [\"SwiftUICalendar\"]),\n    ]\n)\n"
  },
  {
    "path": "README.md",
    "content": "# SwiftUICalendar\n\n[![Version](https://img.shields.io/cocoapods/v/SwiftUICalendar.svg?style=flat)](https://cocoapods.org/pods/SwiftUICalendar)\n[![License](https://img.shields.io/cocoapods/l/SwiftUICalendar.svg?style=flat)](https://cocoapods.org/pods/SwiftUICalendar)\n[![Platform](https://img.shields.io/cocoapods/p/SwiftUICalendar.svg?style=flat)](https://cocoapods.org/pods/SwiftUICalendar)\n\nSwiftUICalendar is calendar view for SwiftUI\n\n## Installation\n\n### [Swift Package Manager](https://swift.org/package-manager/)\n\n-   From url : `https://github.com/GGJJack/SwiftUICalendar`\n\nor\n\n-   Package.swift\n\n```swift\n.package(name: \"SwiftUICalendar\", url: \"https://github.com/GGJJack/SwiftUICalendar\", from: \"0.1.14\")\n```\n\n### [CocoaPods](https://cocoapods.org)\n\n```ruby\npod 'SwiftUICalendar'\n```\n\n### import\n\n```swift\nimport SwiftUICalendar\n```\n\n## Features\n\n-   Infinite scroll\n-   Support horizontal and vertical scroll\n-   Full custom calendar cell\n-   Pager lock\n-   Starting the week with Sunday or Monday\n\n## Example\n\n### Basic\n\n```swift\nCalendarView() { date in\n    Text(\"\\(date.day)\")\n}\n```\n\n### Basic use\n\n![Basic Use](https://github.com/GGJJack/SwiftUICalendar/blob/master/img/basic_use.gif?raw=true)\n\n<details>\n<summary>Show example code</summary>\n<p>\n\n```swift\nstruct BasicUseView: View {\n    @ObservedObject var controller: CalendarController = CalendarController(orientation: .vertical)\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack(alignment: .center, spacing: 0) {\n                Text(\"\\(controller.yearMonth.monthShortString), \\(String(controller.yearMonth.year))\")\n                    .font(.title)\n                    .padding(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))\n                HStack(alignment: .center, spacing: 0) {\n                    ForEach(0..<7, id: \\.self) { i in\n                        Text(DateFormatter().shortWeekdaySymbols[i])\n                            .font(.headline)\n                            .frame(width: reader.size.width / 7)\n                    }\n                }\n                CalendarView(controller) { date in\n                    GeometryReader { geometry in\n                        ZStack(alignment: .center) {\n                            if date.isToday {\n                                Circle()\n                                    .padding(4)\n                                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                    .foregroundColor(.orange)\n                                Text(\"\\(date.day)\")\n                                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                    .font(.system(size: 10, weight: .bold, design: .default))\n                                    .foregroundColor(.white)\n                            } else {\n                                Text(\"\\(date.day)\")\n                                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                    .font(.system(size: 10, weight: .light, design: .default))\n                                    .foregroundColor(getColor(date))\n                                    .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n```\n\n</p>\n</details>\n\n### Calendar scroll\n\n![Basic Use](https://github.com/GGJJack/SwiftUICalendar/blob/master/img/calendar_scroll.gif?raw=true)\n\n<details>\n<summary>Show example code</summary>\n<p>\n\n```swift\nstruct CalendarScrollView: View {\n    @ObservedObject var controller: CalendarController = CalendarController()\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack(alignment: .center, spacing: 0) {\n                HStack(alignment: .center, spacing: 0) {\n                    Spacer()\n                    Button(\"Older\") {\n                        controller.scrollTo(YearMonth(year: 1500, month: 1), isAnimate: true)\n                    }\n                    Spacer()\n                    Button(\"Today\") {\n                        controller.scrollTo(YearMonth.current, isAnimate: false)\n                    }\n                    Spacer()\n                    Button(\"Today Scroll\") {\n                        controller.scrollTo(YearMonth.current, isAnimate: true)\n                    }\n                    Spacer()\n                    Button(\"Future\") {\n                        controller.scrollTo(YearMonth(year: 2500, month: 1), isAnimate: true)\n                    }\n                    Spacer()\n                }\n                Text(\"\\(controller.yearMonth.monthShortString), \\(String(controller.yearMonth.year))\")\n                    .font(.title)\n                    .padding(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))\n                HStack(alignment: .center, spacing: 0) {\n                    ForEach(0..<7, id: \\.self) { i in\n                        Text(DateFormatter().shortWeekdaySymbols[i])\n                            .font(.headline)\n                            .frame(width: reader.size.width / 7)\n                    }\n                }\n                CalendarView(controller) { date in\n                    GeometryReader { geometry in\n                        Text(\"\\(date.day)\")\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                            .font(.system(size: 10, weight: .light, design: .default))\n                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                    }\n                }\n                .navigationBarTitle(\"Calendar Scroll\")\n                // .onChange(of: controller.yearMonth) { yearMonth in // If you want to detect date change\n                //     print(yearMonth)\n                // }\n            }\n        }\n    }\n}\n```\n\n</p>\n</details>\n\n### Embed Header\n\n![Basic Use](https://github.com/GGJJack/SwiftUICalendar/blob/master/img/embed_header.gif?raw=true)\n\n<details>\n<summary>Show example code</summary>\n<p>\n\n```swift\n\nstruct EmbedHeaderView: View {\n\n    @ObservedObject var controller: CalendarController = CalendarController()\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack {\n                HStack(alignment: .center, spacing: 0) {\n                    Button(\"Prev\") {\n                        controller.scrollTo(controller.yearMonth.addMonth(value: -1), isAnimate: true)\n                    }\n                    .padding(8)\n                    Spacer()\n                    Text(\"\\(controller.yearMonth.monthShortString), \\(String(controller.yearMonth.year))\")\n                        .font(.title)\n                        .padding(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))\n                    Spacer()\n                    Button(\"Next\") {\n                        controller.scrollTo(controller.yearMonth.addMonth(value: 1), isAnimate: true)\n                    }\n                    .padding(8)\n                }\n                CalendarView(controller, header: { week in\n                    GeometryReader { geometry in\n                        Text(week.shortString)\n                            .font(.subheadline)\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                    }\n                }, component: { date in\n                    GeometryReader { geometry in\n                        Text(\"\\(date.day)\")\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                            .font(.system(size: 10, weight: .light, design: .default))\n                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                    }\n                })\n            }\n        }\n        .navigationBarTitle(\"Embed header\")\n    }\n}\n```\n\n</p>\n</details>\n\n### Information\n\n![Basic Use](https://github.com/GGJJack/SwiftUICalendar/blob/master/img/information.gif?raw=true)\n\n<details>\n<summary>Show example code</summary>\n<p>\n\n```swift\nextension YearMonthDay: Hashable {\n    public func hash(into hasher: inout Hasher) {\n        hasher.combine(self.year)\n        hasher.combine(self.month)\n        hasher.combine(self.day)\n    }\n}\n\nstruct InformationView: View {\n    var informations = [YearMonthDay: [(String, Color)]]()\n\n    init() {\n        var date = YearMonthDay.current\n        informations[date] = []\n        informations[date]?.append((\"Hello\", Color.orange))\n        informations[date]?.append((\"World\", Color.blue))\n\n        date = date.addDay(value: 3)\n        informations[date] = []\n        informations[date]?.append((\"Test\", Color.pink))\n\n        date = date.addDay(value: 8)\n        informations[date] = []\n        informations[date]?.append((\"Jack\", Color.green))\n\n        date = date.addDay(value: 5)\n        informations[date] = []\n        informations[date]?.append((\"Home\", Color.red))\n\n        date = date.addDay(value: -23)\n        informations[date] = []\n        informations[date]?.append((\"Meet at 8, Home\", Color.purple))\n\n        date = date.addDay(value: -5)\n        informations[date] = []\n        informations[date]?.append((\"Home\", Color.yellow))\n\n        date = date.addDay(value: -10)\n        informations[date] = []\n        informations[date]?.append((\"Baseball\", Color.green))\n    }\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack {\n                CalendarView(header: { week in\n                    GeometryReader { geometry in\n                        Text(week.shortString)\n                            .font(.subheadline)\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                    }\n                }, component: { date in\n                    GeometryReader { geometry in\n                        VStack(alignment: .leading, spacing: 2) {\n                            if date.isToday {\n                                Text(\"\\(date.day)\")\n                                    .font(.system(size: 10, weight: .bold, design: .default))\n                                    .padding(4)\n                                    .foregroundColor(.white)\n                                    .background(Color.red.opacity(0.95))\n                                    .cornerRadius(14)\n                            } else {\n                                Text(\"\\(date.day)\")\n                                    .font(.system(size: 10, weight: .light, design: .default))\n                                    .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                                    .foregroundColor(getColor(date))\n                                    .padding(4)\n                            }\n                            if let infos = informations[date] {\n                                ForEach(infos.indices) { index in\n                                    let info = infos[index]\n                                    Text(info.0)\n                                        .lineLimit(1)\n                                        .foregroundColor(.white)\n                                        .font(.system(size: 8, weight: .bold, design: .default))\n                                        .padding(EdgeInsets(top: 2, leading: 4, bottom: 2, trailing: 4))\n                                        .frame(width: geometry.size.width, alignment: .center)\n                                        .background(info.1.opacity(0.75))\n                                        .cornerRadius(4)\n                                        .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                                }\n                            }\n                        }\n                        .frame(width: geometry.size.width, height: geometry.size.height, alignment: .topLeading)\n                    }\n                })\n            }\n        }\n        .navigationBarTitle(\"Information\")\n    }\n\n    private func getColor(_ date: YearMonthDay) -> Color {\n        if date.dayOfWeek == .sun {\n            return Color.red\n        } else if date.dayOfWeek == .sat {\n            return Color.blue\n        } else {\n            return Color.black\n        }\n    }\n}\n```\n\n</p>\n</details>\n\n### Selection\n\n![Basic Use](https://github.com/GGJJack/SwiftUICalendar/blob/master/img/selection.gif?raw=true)\n\n<details>\n<summary>Show example code</summary>\n<p>\n\n```swift\n\nstruct SelectionView: View {\n    @ObservedObject var controller: CalendarController = CalendarController()\n    @State var focusDate: YearMonthDay? = YearMonthDay.current\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack {\n                CalendarView(controller, header: { week in\n                    GeometryReader { geometry in\n                        Text(week.shortString)\n                            .font(.subheadline)\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                    }\n                }, component: { date in\n                    GeometryReader { geometry in\n                        Text(\"\\(date.day)\")\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                            .font(.system(size: 10, weight: .light, design: .default))\n                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                            .border(.green.opacity(0.8), width: (focusDate == date ? 1 : 0))\n                            .cornerRadius(2)\n                            .contentShape(Rectangle())\n                            .onTapGesture {\n                                focusDate = (date != focusDate ? date : nil)\n                            }\n                    }\n                })\n            }\n        }\n        .navigationBarTitle(\"Selection\")\n    }\n}\n```\n\n</p>\n</details>\n\n### Information + Selection\n\n![Basic Use](https://github.com/GGJJack/SwiftUICalendar/blob/master/img/info_with_select.gif?raw=true)\n\n<details>\n<summary>Show example code</summary>\n<p>\n\n```swift\n\nstruct InformationWithSelectionView: View {\n    let controller = CalendarController()\n    var informations = [YearMonthDay: [(String, Color)]]()\n    @State var focusDate: YearMonthDay? = nil\n    @State var focusInfo: [(String, Color)]? = nil\n\n    init() {\n        var date = YearMonthDay.current\n        informations[date] = []\n        informations[date]?.append((\"Hello\", Color.orange))\n        informations[date]?.append((\"World\", Color.blue))\n\n        date = date.addDay(value: 3)\n        informations[date] = []\n        informations[date]?.append((\"Test\", Color.pink))\n\n        date = date.addDay(value: 8)\n        informations[date] = []\n        informations[date]?.append((\"Jack\", Color.green))\n\n        date = date.addDay(value: 5)\n        informations[date] = []\n        informations[date]?.append((\"Home\", Color.red))\n\n        date = date.addDay(value: -23)\n        informations[date] = []\n        informations[date]?.append((\"Meet at 8, Home\", Color.purple))\n\n        date = date.addDay(value: -5)\n        informations[date] = []\n        informations[date]?.append((\"Home\", Color.yellow))\n\n        date = date.addDay(value: -10)\n        informations[date] = []\n        informations[date]?.append((\"Baseball\", Color.green))\n    }\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack {\n                CalendarView(controller, header: { week in\n                    GeometryReader { geometry in\n                        Text(week.shortString)\n                            .font(.subheadline)\n                            .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                    }\n                }, component: { date in\n                    GeometryReader { geometry in\n                        VStack(alignment: .leading, spacing: 2) {\n                            if date.isToday {\n                                Text(\"\\(date.day)\")\n                                    .font(.system(size: 10, weight: .bold, design: .default))\n                                    .padding(4)\n                                    .foregroundColor(.white)\n                                    .background(Color.red.opacity(0.95))\n                                    .cornerRadius(14)\n                            } else {\n                                Text(\"\\(date.day)\")\n                                    .font(.system(size: 10, weight: .light, design: .default))\n                                    .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                                    .foregroundColor(getColor(date))\n                                    .padding(4)\n                            }\n                            if let infos = informations[date] {\n                                ForEach(infos.indices) { index in\n                                    let info = infos[index]\n                                    if focusInfo != nil {\n                                        Rectangle()\n                                            .fill(info.1.opacity(0.75))\n                                            .frame(width: geometry.size.width, height: 4, alignment: .center)\n                                            .cornerRadius(2)\n                                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                                    } else {\n                                        Text(info.0)\n                                            .lineLimit(1)\n                                            .foregroundColor(.white)\n                                            .font(.system(size: 8, weight: .bold, design: .default))\n                                            .padding(EdgeInsets(top: 2, leading: 4, bottom: 2, trailing: 4))\n                                            .frame(width: geometry.size.width, alignment: .center)\n                                            .background(info.1.opacity(0.75))\n                                            .cornerRadius(4)\n                                            .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                                    }\n                                }\n                            }\n                        }\n                        .frame(width: geometry.size.width, height: geometry.size.height, alignment: .topLeading)\n                        .border(.green.opacity(0.8), width: (focusDate == date ? 1 : 0))\n                        .cornerRadius(2)\n                        .contentShape(Rectangle())\n                        .onTapGesture {\n                            withAnimation {\n                                if focusDate == date {\n                                    focusDate = nil\n                                    focusInfo = nil\n                                } else {\n                                    focusDate = date\n                                    focusInfo = informations[date]\n                                }\n                            }\n                        }\n                    }\n                })\n                if let infos = focusInfo {\n                    List(infos.indices, id: \\.self) { index in\n                        let info = infos[index]\n                        HStack(alignment: .center, spacing: 0) {\n                            Circle()\n                                .fill(info.1.opacity(0.75))\n                                .frame(width: 12, height: 12)\n                            Text(info.0)\n                                .padding(.leading, 8)\n                        }\n                    }\n                    .frame(width: reader.size.width, height: 160, alignment: .center)\n                }\n            }\n        }\n        .navigationBarTitle(\"Info + Select\")\n    }\n\n    private func getColor(_ date: YearMonthDay) -> Color {\n        if date.dayOfWeek == .sun {\n            return Color.red\n        } else if date.dayOfWeek == .sat {\n            return Color.blue\n        } else {\n            return Color.black\n        }\n    }\n}\n\n```\n\n</p>\n</details>\n\n### Date change detection\n\n```Swift\nCalendarView(controller) { date in\n ....\n}\n.onChange(of: controller.yearMonth) { yearMonth in\n    print(yearMonth)\n}\n```\n\n</p>\n</details>\n\n### Start with Monday\n\n![Basic Use](./img/start_monday.gif?raw=true)\n\n<details>\n<summary>Show example code</summary>\n<p>\n\n```swift\n\nstruct StartMondayView: View {\n    @ObservedObject var controller: CalendarController = CalendarController()\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack {\n                Text(\"\\(controller.yearMonth.monthShortString), \\(String(controller.yearMonth.year))\")\n                    .font(.title)\n                    .padding(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))\n\n                CalendarView(controller, startWithMonday: true, headerSize: .fixHeight(50.0)) { week in\n                    Text(\"\\(week.shortString)\")\n                        .font(.headline)\n                        .frame(width: reader.size.width / 7)\n                } component: { date in\n                    GeometryReader { geometry in\n                        if date.isToday {\n                            Circle()\n                                .padding(4)\n                                .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                .foregroundColor(.orange)\n                            Text(\"\\(date.day)\")\n                                .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                .font(.system(size: 10, weight: .bold, design: .default))\n                                .foregroundColor(.white)\n                        } else {\n                            Text(\"\\(date.day)\")\n                                .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                .font(.system(size: 10, weight: .light, design: .default))\n                                .foregroundColor(.black)\n                                .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n```\n\n</p>\n</details>\n\n<details>\n<summary>Show example code</summary>\n<p>\n\n```swift\n\nstruct StartMondayView: View {\n    @ObservedObject var controller: CalendarController = CalendarController()\n\n    var body: some View {\n        GeometryReader { reader in\n            VStack {\n                HStack(alignment: .center, spacing: 0) {\n                    ForEach(0..<7, id: \\.self) { i in\n                        Text(DateFormatter().shortWeekdaySymbols[i < 6 ? i + 1 : 0])\n                            .font(.headline)\n                            .frame(width: reader.size.width / 7)\n                    }\n                }\n                CalendarView(controller, startWithMonday: true, headerSize: .fixHeight(50.0)) { week in\n                    Text(\"\\(week.shortString)\")\n                        .font(.headline)\n                        .frame(width: reader.size.width / 7)\n                } component: { date in\n                    GeometryReader { geometry in\n                        if date.isToday {\n                            Circle()\n                                .padding(4)\n                                .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                .foregroundColor(.orange)\n                            Text(\"\\(date.day)\")\n                                .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                .font(.system(size: 10, weight: .bold, design: .default))\n                                .foregroundColor(.white)\n                        } else {\n                            Text(\"\\(date.day)\")\n                                .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)\n                                .font(.system(size: 10, weight: .light, design: .default))\n                                .foregroundColor(.black)\n                                .opacity(date.isFocusYearMonth == true ? 1 : 0.4)\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n```\n\n</p>\n</details>\n\n## Struct\n\n### CalendarView\n\n```Swift\npublic struct CalendarView<CalendarCell: View, HeaderCell: View>: View {\n    public init(\n        _ controller: CalendarController = CalendarController(),\n        startWithMonday: Bool = false,\n        @ViewBuilder component: @escaping (YearMonthDay) -> CalendarCell\n    ) {\n        ...\n    }\n    public init(\n        _ controller: CalendarController = CalendarController(),\n        startWithMonday: Bool = false,\n        headerSize: HeaderSize = .fixHeight(40),\n        @ViewBuilder header: @escaping (Week) -> HeaderCell,\n        @ViewBuilder component: @escaping (YearMonthDay) -> CalendarCell\n    ) {\n        ...\n    }\n\n    ...\n}\n```\n\n### HeaderSize\n\n```Swift\npublic enum HeaderSize {\n    case zero\n    case ratio\n    case fixHeight(CGFloat)\n}\n```\n\n### CalendarController\n\n```Swift\npublic class CalendarController: ObservableObject {\n    public init(\n        _ yearMonth: YearMonth = .current,\n        orientation: Orientation = .horizontal,\n        isLocked: Bool = false\n    )\n\n    ...\n}\n\nvar verticalController = CalendarController(\n    YearMonth.current,\n    orientation: .vertical,\n    isLocked: true\n)\n\nvar controller = CalendarController()\n\n// Scroll with animate\ncontroller.scrollTo(year: 1991, month: 2, isAnimate: true)\n\n// Scroll without animate\ncontroller.scrollTo(YearMonth.current, isAnimate: false)\n\n// Lock Pager\ncontroller.isLocked = true\n\n```\n\n### YearMonth\n\n```Swift\npublic struct YearMonth: Equatable {\n    public let year: Int\n    public let month: Int\n\n    public init(year: Int, month: Int) { ... }\n\n    ...\n}\n\nlet date = YearMonth(year: 2021, month: 10)\nlet now = YearMonth.current // Now\n\nprint(date.monthShortString) // Oct // Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\n\nlet nextMonth = date.addMonth(value: 1) // {year: 2021, month: 11}\n\nlet diff = nextMonth.diffMonth(value: date) // 2021/11 - 2021/10 = 1\n\nlet components: DateComponents = nextMonth.toDateComponents()\n\n```\n\n### YearMonthDay\n\n```Swift\npublic struct YearMonthDay: Equatable {\n    public let year: Int\n    public let month: Int\n    public let day: Int\n    public let isFocusYearMonth: Bool?\n\n    public init(year: Int, month: Int, day: Int) { ... }\n\n    public init(year: Int, month: Int, day: Int, isFocusYearMonth: Bool) { ... }\n\n    ...\n}\n\nlet date = YearMonthDay(year: 2021, month: 10, day: 26)\nlet now = YearMonthDay.current\n\nlet isToday = now.isToday // true\n\nlet dayOfWeek: Week = date.dayOfWeek // Tue // Sun, Mon, Tue, Wed, Thu, Fri, Sat\n\nlet toDate = date.date! // { 2021/10/26 }\n\nlet components: DateComponents = date.toDateComponents()\n\nlet tomorrow = date.addDay(value: 1) // {year: 2021, month: 10, day: 27}\n\nlet diff = tomorrow.diffDay(value: date) // 2021/10/27 - 2021/10/26 = 1\n```\n\n### Week\n\n```Swift\npublic enum Week: Int, CaseIterable {\n    case sun = 0\n    case mon = 1\n    case tue = 2\n    case wed = 3\n    case thu = 4\n    case fri = 5\n    case sat = 6\n\n    public var shortString: String // Sun, Mon, Tue, Wed, Thu, Fri, Sat\n}\n```\n\n## Contributors\n\nThank you very much for your contribution! 🙏\n\n| [<img src=\"https://images.weserv.nl/?url=https://github.com/aaron25mt.png?v=4&h=300&w=300&fit=cover&mask=circle&maxage=7d\" width=115>](https://github.com/aaron25mt) |[<img src=\"https://images.weserv.nl/?url=https://github.com/NSRover.png?v=4&h=300&w=300&fit=cover&mask=circle&maxage=7d\" width=115>](https://github.com/NSRover) | [<img src=\"https://images.weserv.nl/?url=https://github.com/sanhee16.png?v=4&h=300&w=300&fit=cover&mask=circle&maxage=7d\" width=115>](https://github.com/sanhee16) | \n|:---:|:---:|:---:|\n| [<sub>@aaron25mt</sub>](https://github.com/aaron25mt) | [<sub>@NSRover</sub>](https://github.com/NSRover) |[<sub>@sanhee16</sub>](https://github.com/sanhee16) |\n\n## Author\n\nGGJJack, ggaljjak.choi@gmail.com\n\n## License\n\nSwiftUICalendar is available under the MIT license. See the LICENSE file for more info.\n"
  },
  {
    "path": "Sources/SwiftUICalendar/Assets/.gitkeep",
    "content": ""
  },
  {
    "path": "Sources/SwiftUICalendar/Classes/.gitkeep",
    "content": ""
  },
  {
    "path": "Sources/SwiftUICalendar/Classes/CalendarController.swift",
    "content": "//\n//  CalendarProxy.swift\n//  SwiftUICalendar\n//\n//  Created by GGJJack on 2021/10/25.\n//\n\nimport SwiftUI\nimport Combine\n\npublic class CalendarController: ObservableObject {\n    @Published public var yearMonth: YearMonth\n    @Published public var isLocked: Bool\n    @Published internal var position: Int = Global.CENTER_PAGE\n    @Published internal var internalYearMonth: YearMonth\n    \n    internal let orientation: Orientation\n    internal let columnCount = 7\n    internal let rowCount = 6\n    internal let max: Int = Global.MAX_PAGE\n    internal let center: Int = Global.CENTER_PAGE\n    internal let scrollDetector: CurrentValueSubject<CGFloat, Never>\n    internal var cancellables = Set<AnyCancellable>()\n    \n    public init(_ yearMonth: YearMonth = .current, orientation: Orientation = .horizontal, isLocked: Bool = false) {\n        let detector = CurrentValueSubject<CGFloat, Never>(0)\n        \n        self.scrollDetector = detector\n        self.internalYearMonth = yearMonth\n        self.yearMonth = yearMonth\n        self.orientation = orientation\n        self.isLocked = isLocked\n        \n        detector\n            .debounce(for: .seconds(0.2), scheduler: DispatchQueue.main)\n            .dropFirst()\n            .sink { [weak self] value in\n                if let self = self {\n                    let move = self.position - self.center\n                    self.internalYearMonth = self.internalYearMonth.addMonth(value: move)\n                    self.yearMonth = self.internalYearMonth\n                    self.position = self.center\n                    self.objectWillChange.send()\n                }\n            }\n            .store(in: &cancellables)\n    }\n    \n    public func setYearMonth(year: Int, month: Int) {\n        self.setYearMonth(YearMonth(year: year, month: month))\n    }\n    \n    public func setYearMonth(_ yearMonth: YearMonth) {\n        self.yearMonth = yearMonth\n        self.internalYearMonth = yearMonth\n        self.position = self.center\n        self.objectWillChange.send()\n    }\n    \n    public func scrollTo(year: Int, month: Int, isAnimate: Bool = true) {\n        self.scrollTo(YearMonth(year: year, month: month), isAnimate: isAnimate)\n    }\n    \n    public func scrollTo(_ yearMonth: YearMonth, isAnimate: Bool = true) {\n        if isAnimate {\n            var diff = self.position - yearMonth.diffMonth(value: self.yearMonth)\n            if diff < 0 {\n                self.internalYearMonth = yearMonth.addMonth(value: self.center)\n                diff = 0\n                // 4 * 12 + 2 50\n            } else if self.max <= diff {\n                self.internalYearMonth = yearMonth.addMonth(value: -self.center + 1)\n                diff = self.max - 1\n            }\n            self.objectWillChange.send()\n            withAnimation { [weak self] in\n                if let self = self {\n                    self.position = diff\n                    self.objectWillChange.send()\n                }\n            }\n        } else {\n            self.internalYearMonth = yearMonth\n            self.yearMonth = yearMonth\n            self.objectWillChange.send()\n        }\n    }\n}\n"
  },
  {
    "path": "Sources/SwiftUICalendar/Classes/CalendarView.swift",
    "content": "//\n//  CalendarView.swift\n//  SwiftUICalendar\n//\n//  Created by GGJJack on 2021/10/26.\n//\n\nimport SwiftUI\nimport Combine\n\npublic struct CalendarView<CalendarCell: View, HeaderCell: View>: View {\n    \n    private var gridItem: [GridItem] = Array(repeating: .init(.flexible(), spacing: 0), count: 7) // columnCount\n    private let component: (YearMonthDay) -> CalendarCell\n    private let header: (Week) -> HeaderCell?\n    private var headerSize: HeaderSize\n    @ObservedObject private var controller: CalendarController\n    private let isHasHeader: Bool\n    private var startWithMonday: Bool\n    \n    public init(\n        _ controller: CalendarController = CalendarController(),\n        startWithMonday: Bool = false,\n        @ViewBuilder component: @escaping (YearMonthDay) -> CalendarCell\n    ) where HeaderCell == EmptyView {\n        self.controller = controller\n        self.startWithMonday = startWithMonday\n        self.header = { _ in nil }\n        self.component = component\n        self.isHasHeader = false\n        self.headerSize = .zero\n    }\n    \n    public init(\n        _ controller: CalendarController = CalendarController(),\n        startWithMonday: Bool = false,\n        headerSize: HeaderSize = .fixHeight(40),\n        @ViewBuilder header: @escaping (Week) -> HeaderCell,\n        @ViewBuilder component: @escaping (YearMonthDay) -> CalendarCell\n    ) {\n        self.controller = controller\n        self.startWithMonday = startWithMonday\n        self.header = header\n        self.component = component\n        self.isHasHeader = true\n        self.headerSize = headerSize\n    }\n    \n    public var body: some View {\n        GeometryReader { proxy in\n            InfinitePagerView(controller, orientation: controller.orientation) { yearMonth, i in\n                LazyVGrid(columns: gridItem, alignment: .center, spacing: 0) {\n                    ForEach(0..<(controller.columnCount * (controller.rowCount + (isHasHeader ? 1 : 0))), id: \\.self) { j in\n                        GeometryReader { geometry in\n                            if isHasHeader && j < controller.columnCount {\n                                header(Week.allCases[!self.startWithMonday ? j : j < 6 ? j + 1 : 0])\n                            } else {\n                                let date = yearMonth.cellToDate(j - (isHasHeader ? 7 : 0), startWithMonday: startWithMonday)\n                                self.component(date)\n                            }\n                        }\n                        .frame(height: calculateCellHeight(j, geometry: proxy))\n                    }\n                }\n                .frame(width: proxy.size.width, height: proxy.size.height, alignment: .center)\n            }\n        }\n    }\n    \n    func calculateCellHeight(_ index: Int, geometry: GeometryProxy) -> CGFloat {\n        if !isHasHeader {\n            return geometry.size.height / CGFloat(controller.rowCount)\n        }\n\n        var headerHeight: CGFloat = 0\n        switch headerSize {\n        case .zero:\n            headerHeight = 0\n        case .ratio:\n            headerHeight = geometry.size.height / CGFloat(controller.rowCount + 1)\n        case .fixHeight(let value):\n            headerHeight = value\n        }\n\n        if index < controller.columnCount {\n            return headerHeight\n        } else {\n            return (geometry.size.height - headerHeight) / CGFloat(controller.rowCount)\n        }\n    }\n}\n\nstruct CalendarView_Previews: PreviewProvider {\n    static var previews: some View {\n        CalendarView(CalendarController()) { date in\n            GeometryReader { geometry in\n                Text(\"\\(String(date.year))/\\(date.month)/\\(date.day)\")\n                    .frame(width: geometry.size.width, height: geometry.size.height, alignment: .topLeading)\n                    .border(.black, width: 1)\n                    .font(.system(size: 8))\n                    .opacity(date.isFocusYearMonth == true ? 1 : 0.6)\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "Sources/SwiftUICalendar/Classes/Global.swift",
    "content": "//\n//  Global.swift\n//  SwiftUICalendar\n//\n//  Created by GGJJack on 2021/10/22.\n//\n\nimport Foundation\nimport SwiftUI\n\nclass Global {\n    static let MAX_PAGE = 100\n    static let CENTER_PAGE = 100 / 2\n}\n"
  },
  {
    "path": "Sources/SwiftUICalendar/Classes/InfinitePagerView.swift",
    "content": "//\n//  InfinitePagerView.swift\n//  SwiftUICalendar\n//\n//  Created by GGJJack on 2021/10/22.\n//\n\nimport Foundation\nimport SwiftUI\nimport Combine\n\ninternal struct InfinitePagerView<Content: View>: View {\n    private let content: (YearMonth, Int) -> Content\n    private let flippingAngle: Angle = Angle(degrees: 0)\n    @ObservedObject private var controller: CalendarController\n    private var _onMoveCenter: ((Int) -> Void)? = nil\n    \n    init(_ controller: CalendarController, orientation: Orientation, @ViewBuilder content: @escaping (YearMonth, Int) -> Content) {\n        self.controller = controller\n        self.content = content\n    }\n    \n    var body: some View {\n        drawTabView { geometry in\n            ForEach(0..<controller.max, id: \\.self) { i in\n                let yearMonth = controller.internalYearMonth.addMonth(value: i - Global.CENTER_PAGE)\n                self.content(yearMonth, i).frame(width: geometry.size.width, height: geometry.size.height)\n                    .background(GeometryReader {\n                        Color.clear.preference(key: ScrollOffsetKey.self, value: (controller.orientation == .horizontal ? -$0.frame(in: .named(\"scroll\")).origin.x : -$0.frame(in: .named(\"scroll\")).origin.y))\n                    })\n                    .onPreferenceChange(ScrollOffsetKey.self) { controller.scrollDetector.send($0) }\n            }\n        }\n    }\n    \n    private func drawTabView<V: View>(@ViewBuilder content: @escaping (GeometryProxy) -> V) -> some View {\n        return GeometryReader { proxy in\n            if controller.orientation == .horizontal {\n                TabView(selection: $controller.position) {\n                    content(proxy)\n                        .contentShape(Rectangle())\n                        .gesture(controller.isLocked ? DragGesture() : nil)\n                }\n                .frame(width: proxy.size.width, height: proxy.size.height)\n                .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))\n                .coordinateSpace(name: \"scroll\")\n            } else {\n                TabView(selection: $controller.position) {\n                    content(proxy)\n                        .frame(width: proxy.size.width, height: proxy.size.height)\n                        .rotationEffect(.degrees(-90))\n                        .rotation3DEffect(flippingAngle, axis: (x: 1, y: 0, z: 0))\n                        .contentShape(Rectangle())\n                        .gesture(controller.isLocked ? DragGesture() : nil)\n                }\n                .frame(width: proxy.size.height, height: proxy.size.width)\n                .rotation3DEffect(flippingAngle, axis: (x: 1, y: 0, z: 0))\n                .rotationEffect(.degrees(90), anchor: .topLeading)\n                .offset(x: proxy.size.width)\n                .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))\n                .coordinateSpace(name: \"scroll\")\n            }\n        }\n    }\n    \n    func onMoveCenter(callback: ((Int) -> Void)?) -> Self {\n        var ret = self\n        ret._onMoveCenter = callback\n        return ret\n    }\n}\n\nfileprivate struct ScrollOffsetKey: PreferenceKey {\n    typealias Value = CGFloat\n    static var defaultValue = CGFloat.zero\n    static func reduce(value: inout Value, nextValue: () -> Value) {\n        value += nextValue()\n    }\n}\n"
  },
  {
    "path": "Sources/SwiftUICalendar/Classes/Struct.swift",
    "content": "//\n//  Struct.swift\n//  SwiftUICalendar\n//\n//  Created by GGJJack on 2021/10/21.\n//\n\nimport Foundation\nimport SwiftUI\n\npublic enum Week: Int, CaseIterable {\n    case sun = 0\n    case mon = 1\n    case tue = 2\n    case wed = 3\n    case thu = 4\n    case fri = 5\n    case sat = 6\n    \n    public var shortString: String {\n        get {\n            return DateFormatter().shortWeekdaySymbols[self.rawValue]\n        }\n    }\n    \n    public func shortString(locale: Locale) -> String {\n        let formatter = DateFormatter()\n        formatter.locale = locale\n        return formatter.shortWeekdaySymbols[self.rawValue]\n    }\n}\n\npublic enum Orientation {\n    case horizontal\n    case vertical\n}\n\npublic enum HeaderSize {\n    case zero\n    case ratio\n    case fixHeight(CGFloat)\n}\n\npublic struct YearMonth: Equatable, Hashable {\n    public let year: Int\n    public let month: Int\n    \n    public init(year: Int, month: Int) {\n        self.year = year\n        self.month = month\n    }\n    \n    public static var current: YearMonth {\n        get {\n            let today = Date()\n            return YearMonth(year: Calendar.current.component(.year, from: today), month: Calendar.current.component(.month, from: today))\n        }\n    }\n    \n    public static func ==(lhs: Self, rhs: Self) -> Bool {\n        return lhs.year == rhs.year && lhs.month == rhs.month\n    }\n    \n    public var monthShortString: String {\n        get {\n            var components = toDateComponents()\n            components.day = 1\n            components.hour = 0\n            components.minute = 0\n            components.second = 0\n            let formatter = DateFormatter()\n            formatter.dateFormat = \"MMM\"\n            return formatter.string(from: Calendar.current.date(from: components)!)\n        }\n    }\n    \n    public func addMonth(value: Int) -> YearMonth {\n        let gregorianCalendar = NSCalendar(calendarIdentifier: .gregorian)!\n        let toDate = self.toDateComponents()\n\n        var components = DateComponents()\n        components.month = value\n\n        let addedDate = Calendar.current.date(byAdding: components, to: gregorianCalendar.date(from: toDate)!)!\n        let ret = YearMonth(year: Calendar.current.component(.year, from: addedDate), month: Calendar.current.component(.month, from: addedDate))\n        return ret\n    }\n    \n    public func diffMonth(value: YearMonth) -> Int {\n        var origin = self.toDateComponents()\n        origin.day = 1\n        origin.hour = 0\n        origin.minute = 0\n        origin.second = 0\n        var new = value.toDateComponents()\n        new.day = 1\n        new.hour = 0\n        new.minute = 0\n        new.second = 0\n        return Calendar.current.dateComponents([.month], from: Calendar.current.date(from: origin)!, to: Calendar.current.date(from: new)!).month!\n    }\n    \n    public func toDateComponents() -> DateComponents {\n        var components = DateComponents()\n        components.year = self.year\n        components.month = self.month\n        return components\n    }\n\n    public func hash(into hasher: inout Hasher) {\n        hasher.combine(self.year)\n        hasher.combine(self.month)\n    }\n    \n    internal func cellToDate(_ cellIndex: Int, startWithMonday: Bool) -> YearMonthDay {\n        let gregorianCalendar = NSCalendar(calendarIdentifier: .gregorian)!\n        var toDateComponent = DateComponents()\n        toDateComponent.year = self.year\n        toDateComponent.month = self.month\n        toDateComponent.day = 1\n        let toDate = gregorianCalendar.date(from: toDateComponent)!\n        let weekday = Calendar.current.component(.weekday, from: toDate) // 1Sun, 2Mon, 3Tue, 4Wed, 5Thu, 6Fri, 7Sat\n        var components = DateComponents()\n        components.day = cellIndex - weekday + (!startWithMonday ? 1 : weekday == 1 ? (-5) : 2)\n        let addedDate = Calendar.current.date(byAdding: components, to: toDate)!\n        let year = Calendar.current.component(.year, from: addedDate)\n        let month = Calendar.current.component(.month, from: addedDate)\n        let day = Calendar.current.component(.day, from: addedDate)\n        let isFocusYaerMonth = year == self.year && month == self.month\n        let ret = YearMonthDay(year: year, month: month, day: day, isFocusYearMonth: isFocusYaerMonth)\n        return ret\n    }\n}\n\npublic struct YearMonthDay: Equatable, Hashable {\n    public let year: Int\n    public let month: Int\n    public let day: Int\n    public let isFocusYearMonth: Bool?\n    \n    public init(year: Int, month: Int, day: Int) {\n        self.year = year\n        self.month = month\n        self.day = day\n        self.isFocusYearMonth = nil\n    }\n        \n    public init(year: Int, month: Int, day: Int, isFocusYearMonth: Bool) {\n        self.year = year\n        self.month = month\n        self.day = day\n        self.isFocusYearMonth = isFocusYearMonth\n    }\n    \n    public static var current: YearMonthDay {\n        get {\n            let today = Date()\n            return YearMonthDay(\n                year: Calendar.current.component(.year, from: today),\n                month: Calendar.current.component(.month, from: today),\n                day: Calendar.current.component(.day, from: today)\n            )\n        }\n    }\n    \n    public static func ==(lhs: Self, rhs: Self) -> Bool {\n        return lhs.year == rhs.year && lhs.month == rhs.month && lhs.day == rhs.day\n    }\n    \n    public var isToday: Bool {\n        let today = Date()\n        let year = Calendar.current.component(.year, from: today)\n        let month = Calendar.current.component(.month, from: today)\n        let day = Calendar.current.component(.day, from: today)\n        return self.year == year && self.month == month && self.day == day\n    }\n    \n    public var dayOfWeek: Week {\n        let weekday = Calendar.current.component(.weekday, from: self.date!)\n        return Week.allCases[weekday - 1]\n    }\n    \n    public var date: Date? {\n        let gregorianCalendar = NSCalendar(calendarIdentifier: .gregorian)!\n        return gregorianCalendar.date(from: self.toDateComponents())\n    }\n    \n    public func toDateComponents() -> DateComponents {\n        var components = DateComponents()\n        components.year = self.year\n        components.month = self.month\n        components.day = self.day\n        return components\n    }\n    \n    public func addDay(value: Int) -> YearMonthDay {\n        let gregorianCalendar = NSCalendar(calendarIdentifier: .gregorian)!\n        let toDate = self.toDateComponents()\n\n        var components = DateComponents()\n        components.day = value\n\n        let addedDate = Calendar.current.date(byAdding: components, to: gregorianCalendar.date(from: toDate)!)!\n        let ret = YearMonthDay(\n            year: Calendar.current.component(.year, from: addedDate),\n            month: Calendar.current.component(.month, from: addedDate),\n            day: Calendar.current.component(.day, from: addedDate)\n        )\n        return ret\n    }\n    \n    public func diffDay(value: YearMonthDay) -> Int {\n        var origin = self.toDateComponents()\n        origin.hour = 0\n        origin.minute = 0\n        origin.second = 0\n        var new = value.toDateComponents()\n        new.hour = 0\n        new.minute = 0\n        new.second = 0\n        return Calendar.current.dateComponents([.day], from: Calendar.current.date(from: origin)!, to: Calendar.current.date(from: new)!).month!\n    }\n    \n    public func hash(into hasher: inout Hasher) {\n        hasher.combine(self.year)\n        hasher.combine(self.month)\n        hasher.combine(self.day)\n    }\n}\n\n"
  },
  {
    "path": "SwiftUICalendar.podspec",
    "content": "#\n# Be sure to run `pod lib lint SwiftUICalendar.podspec' to ensure this is a\n# valid spec before submitting.\n#\n# Any lines starting with a # are optional, but their use is encouraged\n# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html\n#\n\nPod::Spec.new do |s|\n  s.name             = 'SwiftUICalendar'\n  s.version          = '0.1.14'\n  s.summary          = 'SwiftUI Simple calendar view'\n  s.swift_version = '4.0'\n\n# This description is used to generate tags and improve search results.\n#   * Think: What does it do? Why did you write it? What is the focus?\n#   * Try to keep it short, snappy and to the point.\n#   * Write the description between the DESC delimiters below.\n#   * Finally, don't worry about the indent, CocoaPods strips it!\n\n  s.description      = <<-DESC\n  SwiftUI Simple Calendar View\n  \n  Installation\n                       DESC\n\n  s.homepage         = 'https://github.com/GGJJack/SwiftUICalendar'\n  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'\n  s.license          = { :type => 'MIT', :file => 'LICENSE' }\n  s.author           = { 'ggaljjak' => 'ggaljjak.choi@gmail.com' }\n  s.source           = { :git => 'https://github.com/GGJJack/SwiftUICalendar.git', :tag => s.version.to_s }\n  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'\n\n  s.ios.deployment_target = '14.0'\n\n  s.source_files = 'Sources/SwiftUICalendar/Classes/**/*'\n  \n  # s.resource_bundles = {\n  #   'SwiftUICalendar' => ['SwiftUICalendar/Assets/*.png']\n  # }\n\n  # s.public_header_files = 'Pod/Classes/**/*.h'\n  # s.frameworks = 'UIKit', 'MapKit'\n  # s.dependency 'AFNetworking', '~> 2.3'\nend\n"
  }
]