├── .github └── FUNDING.yml ├── .gitignore ├── Cartfile ├── Cartfile.resolved ├── ColorKit-Objc ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── ColorKit_Objc.xcdatamodeld │ ├── .xccurrentversion │ └── ColorKit_Objc.xcdatamodel │ │ └── contents ├── Info.plist ├── ViewController.h ├── ViewController.m ├── main.m ├── zh-Hans.lproj │ ├── LaunchScreen.strings │ └── Main.strings └── zh-Hant.lproj │ ├── LaunchScreen.strings │ └── Main.strings ├── ColorKit-ObjcTests ├── ColorKit_ObjcTests.m └── Info.plist ├── ColorKit-Swift ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── App IconiPadApp_76pt.png │ │ ├── App IconiPadApp_76pt@2x.png │ │ ├── App IconiPadNotifications_20pt.png │ │ ├── App IconiPadNotifications_20pt@2x.png │ │ ├── App IconiPadProApp_83.5pt@2x.png │ │ ├── App IconiPadSpootlight5_29pt.png │ │ ├── App IconiPadSpootlight5_29pt@2x.png │ │ ├── App IconiPadSpootlight7_40pt.png │ │ ├── App IconiPadSpootlight7_40pt@2x.png │ │ ├── App IconiPhoneApp_60pt@2x.png │ │ ├── App IconiPhoneApp_60pt@3x.png │ │ ├── App IconiPhoneNotification_20pt@2x.png │ │ ├── App IconiPhoneNotification_20pt@3x.png │ │ ├── App IconiPhoneSpootlight5_29pt@2x.png │ │ ├── App IconiPhoneSpootlight5_29pt@3x.png │ │ ├── App IconiPhoneSpootlight7_40pt@2x.png │ │ ├── App IconiPhoneSpootlight7_40pt@3x.png │ │ ├── App Iconstore_1024pt.png │ │ └── Contents.json │ ├── App_Icon.imageset │ │ ├── App_Icon.png │ │ └── Contents.json │ ├── App_Icon_round.imageset │ │ ├── App_Icon_round.png │ │ └── Contents.json │ ├── Background.colorset │ │ └── Contents.json │ ├── Contents.json │ ├── LaunchImage.launchimage │ │ └── Contents.json │ ├── ThemeBlue.colorset │ │ └── Contents.json │ ├── ThemeRed.colorset │ │ └── Contents.json │ ├── add.imageset │ │ ├── Contents.json │ │ ├── add@1x.png │ │ ├── add@2x.png │ │ └── add@3x.png │ ├── bottom_shadow.imageset │ │ ├── Contents.json │ │ ├── bottom_shadow@2x.png │ │ └── bottom_shadow@3x.png │ ├── button_camera_roll.imageset │ │ ├── Contents.json │ │ └── button_camera_roll.pdf │ ├── commonBackgroundColor.colorset │ │ └── Contents.json │ ├── feed_container_background.imageset │ │ ├── Contents.json │ │ └── feed_container_background.pdf │ ├── icon_about.imageset │ │ ├── Contents.json │ │ ├── icon_about.png │ │ ├── icon_about@2x.png │ │ └── icon_about@3x.png │ ├── icon_add_center.imageset │ │ ├── Contents.json │ │ ├── icon_add_center.png │ │ ├── icon_add_center@2x.png │ │ └── icon_add_center@3x.png │ ├── icon_add_square.imageset │ │ ├── Contents.json │ │ ├── icon_add_square.png │ │ ├── icon_add_square@2x.png │ │ └── icon_add_square@3x.png │ ├── icon_arrow_down.imageset │ │ ├── Contents.json │ │ └── icon_arrow_down.pdf │ ├── icon_camera.imageset │ │ ├── Contents.json │ │ └── icon_camera.pdf │ ├── icon_card.imageset │ │ ├── Contents.json │ │ ├── icon_card.png │ │ ├── icon_card@2x.png │ │ └── icon_card@3x.png │ ├── icon_card_view.imageset │ │ ├── Contents.json │ │ └── icon_card_view.pdf │ ├── icon_collect_null.imageset │ │ ├── Contents.json │ │ ├── icon_collect_null.png │ │ ├── icon_collect_null@2x.png │ │ └── icon_collect_null@3x.png │ ├── icon_collect_save.imageset │ │ ├── Contents.json │ │ ├── icon_collect_save.png │ │ ├── icon_collect_save@2x.png │ │ └── icon_collect_save@3x.png │ ├── icon_delete.imageset │ │ ├── Contents.json │ │ └── icon_delete.pdf │ ├── icon_download.imageset │ │ ├── Contents.json │ │ ├── icon_download.png │ │ ├── icon_download@2x.png │ │ └── icon_download@3x.png │ ├── icon_edit.imageset │ │ ├── Contents.json │ │ ├── icon_edit.png │ │ ├── icon_edit@2x.png │ │ └── icon_edit@3x.png │ ├── icon_heart.imageset │ │ ├── Contents.json │ │ └── badge_heart.pdf │ ├── icon_heart_solid.imageset │ │ ├── Contents.json │ │ └── icon_heart_solid.pdf │ ├── icon_image.imageset │ │ ├── Contents.json │ │ ├── icon_image.png │ │ ├── icon_image@2x.png │ │ └── icon_image@3x.png │ ├── icon_list_view.imageset │ │ ├── Contents.json │ │ └── icon_list_view.pdf │ ├── icon_more.imageset │ │ ├── Contents.json │ │ └── icon_more.pdf │ ├── icon_pin.imageset │ │ ├── Contents.json │ │ └── pin.pdf │ ├── icon_settings.imageset │ │ ├── Contents.json │ │ └── icon_settings.pdf │ ├── icon_share.imageset │ │ ├── Contents.json │ │ ├── icon_share.png │ │ ├── icon_share@2x.png │ │ └── icon_share@3x.png │ ├── icon_up.imageset │ │ ├── Contents.json │ │ └── icon_up.pdf │ └── navigationTint.colorset │ │ └── Contents.json ├── Bades.xcassets │ ├── Contents.json │ ├── badge_alipay.imageset │ │ ├── Contents.json │ │ └── badge_alipay.pdf │ ├── badge_android.imageset │ │ ├── Contents.json │ │ └── badge_android.pdf │ ├── badge_apple.imageset │ │ ├── Contents.json │ │ └── badge_apple.pdf │ ├── badge_ball.imageset │ │ ├── Contents.json │ │ └── badge_ball.pdf │ ├── badge_bike.imageset │ │ ├── Contents.json │ │ └── badge_bike.pdf │ ├── badge_bubble.imageset │ │ ├── Contents.json │ │ └── badge_bubble.pdf │ ├── badge_building.imageset │ │ ├── Contents.json │ │ └── badge_building.pdf │ ├── badge_camera.imageset │ │ ├── Contents.json │ │ └── badge_camera.pdf │ ├── badge_dribbble.imageset │ │ ├── Contents.json │ │ └── badge_dribbble.pdf │ ├── badge_dropbox.imageset │ │ ├── Contents.json │ │ └── badge_dropbox.pdf │ ├── badge_facebook.imageset │ │ ├── Contents.json │ │ └── badge_facebook.pdf │ ├── badge_game.imageset │ │ ├── Contents.json │ │ └── badge_game.pdf │ ├── badge_github.imageset │ │ ├── Contents.json │ │ └── badge_github.pdf │ ├── badge_heart.imageset │ │ ├── Contents.json │ │ └── badge_heart.pdf │ ├── badge_html5.imageset │ │ ├── Contents.json │ │ └── badge_html5.pdf │ ├── badge_instagram.imageset │ │ ├── Contents.json │ │ └── badge_instagram.pdf │ ├── badge_linkedin.imageset │ │ ├── Contents.json │ │ └── badge_linkedin.pdf │ ├── badge_linux.imageset │ │ ├── Contents.json │ │ └── badge_linux.pdf │ ├── badge_local.imageset │ │ ├── Contents.json │ │ └── badge_local.pdf │ ├── badge_meditation.imageset │ │ ├── Contents.json │ │ └── badge_meditation.png │ ├── badge_music.imageset │ │ ├── Contents.json │ │ └── badge_music.pdf │ ├── badge_palette.imageset │ │ ├── Contents.json │ │ └── badge_palette.pdf │ ├── badge_pet.imageset │ │ ├── Contents.json │ │ └── badge_pet.pdf │ ├── badge_pinterest.imageset │ │ ├── Contents.json │ │ └── badge_pinterest.pdf │ ├── badge_plane.imageset │ │ ├── Contents.json │ │ └── badge_plane.pdf │ ├── badge_plane_up.imageset │ │ ├── Contents.json │ │ └── badge_plane_up.pdf │ ├── badge_playstation.imageset │ │ ├── Contents.json │ │ └── badge_playstation.pdf │ ├── badge_python.imageset │ │ ├── Contents.json │ │ └── badge_python.pdf │ ├── badge_reddit.imageset │ │ ├── Contents.json │ │ └── badge_reddit.pdf │ ├── badge_renren.imageset │ │ ├── Contents.json │ │ └── badge_renren.pdf │ ├── badge_science.imageset │ │ ├── Contents.json │ │ └── badge_sience.pdf │ ├── badge_skype.imageset │ │ ├── Contents.json │ │ └── badge_skype.pdf │ ├── badge_slack.imageset │ │ ├── Contents.json │ │ └── badge_slack.pdf │ ├── badge_snapchat.imageset │ │ ├── Contents.json │ │ └── badge_snapchat.pdf │ ├── badge_star.imageset │ │ ├── Contents.json │ │ └── badge_star.pdf │ ├── badge_steve.imageset │ │ ├── Contents.json │ │ └── badge_steve.pdf │ ├── badge_tag.imageset │ │ ├── Contents.json │ │ └── badge_tag.pdf │ ├── badge_taobao.imageset │ │ ├── Contents.json │ │ └── badge_taobao.pdf │ ├── badge_tech.imageset │ │ ├── Contents.json │ │ └── badge_tech.pdf │ ├── badge_tieba.imageset │ │ ├── Contents.json │ │ └── badge_tieba.pdf │ ├── badge_tumblr.imageset │ │ ├── Contents.json │ │ └── badge_tumblr.pdf │ ├── badge_twitch.imageset │ │ ├── Contents.json │ │ └── badge_twitch.pdf │ ├── badge_twitter.imageset │ │ ├── Contents.json │ │ └── badge_twitter.pdf │ ├── badge_weather.imageset │ │ ├── Contents.json │ │ └── badge_weather.pdf │ ├── badge_weibo.imageset │ │ ├── Contents.json │ │ └── badge_weibo.pdf │ ├── badge_weixin.imageset │ │ ├── Contents.json │ │ └── badge_weixin.pdf │ ├── badge_whatsapp.imageset │ │ ├── Contents.json │ │ └── badge_whatsapp.pdf │ ├── badge_windows.imageset │ │ ├── Contents.json │ │ └── badge_windows.pdf │ ├── badge_wine.imageset │ │ ├── Contents.json │ │ └── badge_wine.pdf │ ├── badge_xbox.imageset │ │ ├── Contents.json │ │ └── badge_xbox.pdf │ ├── badge_zhihu.imageset │ │ ├── Contents.json │ │ └── badge_zhihu.pdf │ └── enabled_badge_background.imageset │ │ ├── Contents.json │ │ └── enabled_badge_background.pdf ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Cell │ ├── AppendColor │ │ ├── BatchCreateColorCollectionCell.swift │ │ └── BatchCreateColorCollectionCell.xib │ ├── Base │ │ └── BaseSwipeLeftCollectionViewCell.swift │ ├── ColorTitleCell.swift │ ├── ColorTitleCell.xib │ ├── ColorTitleCollectionCell.swift │ ├── ColorTitleCollectionCell.xib │ ├── Detail │ │ ├── ColorCardCell.swift │ │ ├── ColorCardCell.xib │ │ ├── ColorCardCollectionCell.swift │ │ ├── ColorCardCollectionCell.xib │ │ ├── ColorDetailCell.swift │ │ └── ColorDetailCell.xib │ └── Featured │ │ ├── EmbeddedCollectionViewCell.swift │ │ ├── FeatureColorCardCollectionViewCell.swift │ │ ├── FeatureColorCardCollectionViewCell.xib │ │ ├── FeatureTitleCollectionViewCell.swift │ │ ├── FeatureTitleCollectionViewCell.xib │ │ ├── FeaturedColorCell.swift │ │ └── FeaturedColorCell.xib ├── ColorKit-Swift-Bridging-Header.h ├── ColorKit-Swift.entitlements ├── ColorKit_Swift.xcdatamodeld │ ├── .xccurrentversion │ └── ColorKit_Swift.xcdatamodel │ │ └── contents ├── Common │ ├── CommonUtil.swift │ └── Constant.swift ├── Controller │ ├── AboutColorKit │ │ ├── AboutViewController.storyboard │ │ └── AboutViewController.swift │ ├── Alert │ │ └── GreatAlertController.swift │ ├── AppendColor │ │ ├── BatchCreateColorFromImageViewController.swift │ │ ├── BatchNewCreateColorViewController.swift │ │ ├── ChooseProjectViewController.swift │ │ ├── CreateColorFromImageViewController.swift │ │ ├── CreateColorViewController.storyboard │ │ ├── CreateColorViewController.swift │ │ ├── NewCreateColorViewController.swift │ │ ├── en.lproj │ │ │ └── CreateColorFromImageViewController.storyboard │ │ ├── zh-Hans.lproj │ │ │ └── CreateColorFromImageViewController.strings │ │ └── zh-Hant.lproj │ │ │ └── CreateColorFromImageViewController.strings │ ├── Base │ │ ├── BaseCollectionViewController.swift │ │ ├── BaseTableViewController.swift │ │ └── PresentBaseViewController.swift │ ├── BaseViewController.swift │ ├── ColorDetail │ │ ├── ColorCardCollectionViewController.swift │ │ ├── ColorCardViewController.storyboard │ │ ├── ColorCardViewController.swift │ │ ├── ColorContainerViewController.swift │ │ ├── ColorDetailViewController.storyboard │ │ └── ColorDetailViewController.swift │ ├── ColorInfo │ │ ├── ColorInfoViewController.storyboard │ │ ├── ColorInfoViewController.swift │ │ └── FeatureColorInfoViewController.swift │ ├── Featured │ │ ├── FeaturedCollectionViewController.swift │ │ └── FeaturedColorViewController.swift │ ├── Me │ │ ├── Base.lproj │ │ │ └── MyViewController.storyboard │ │ ├── MyViewController.swift │ │ ├── en.lproj │ │ │ └── MyViewController.storyboard │ │ ├── zh-Hans.lproj │ │ │ └── MyViewController.strings │ │ └── zh-Hant.lproj │ │ │ └── MyViewController.storyboard │ ├── MyCollect │ │ ├── CollectColorCardViewController.storyboard │ │ ├── CollectColorCardViewController.swift │ │ ├── CollectColorContainerViewController.swift │ │ ├── CollectColorDetailCollectionViewController.swift │ │ ├── CollectColorDetailViewController.storyboard │ │ └── CollectColorDetailViewController.swift │ ├── Navi │ │ ├── BaseNavigationController.swift │ │ └── InteractiveTransitionNavigationController.swift │ ├── ProjectSetting │ │ ├── Base.lproj │ │ │ └── ProjectSettingViewController.storyboard │ │ ├── ProjectSettingViewController.swift │ │ ├── en.lproj │ │ │ └── ProjectSettingViewController.strings │ │ ├── zh-Hans.lproj │ │ │ └── ProjectSettingViewController.strings │ │ └── zh-Hant.lproj │ │ │ └── ProjectSettingViewController.strings │ ├── Tab │ │ └── BaseTabBarController.swift │ └── WholeScheme │ │ └── ColorBlendingViewController.swift ├── Entity │ ├── AppendColorHelper.swift │ ├── FeatureColor.swift │ ├── FeatureProject.swift │ ├── FeaturedLoader.swift │ └── NSObject+IGListDiffable.swift ├── Extension │ ├── UIButton+Extension.swift │ ├── UIColor+Extension.swift │ ├── UIImage+Extension.swift │ ├── UITableView+Extension.swift │ ├── UIView+Extension.swift │ └── UIViewController+Extension.swift ├── Helper │ ├── PersistentContainer.swift │ ├── RegexHelper.swift │ ├── SafeDispatch.swift │ └── UserDefaultsTool.swift ├── Info.plist ├── Protocol │ ├── CloseColorCardInteractiveTransition.swift │ ├── CloseColorCardTransition.swift │ ├── NibLoadable.swift │ ├── OpenColorCardTransition.swift │ ├── Reusable.swift │ └── SystemCloseTransition.swift ├── Resource │ ├── Base.lproj │ │ └── example_project.plist │ ├── FandolSong-Bold.otf │ └── wheels_of_time.caf ├── SectionControllers │ ├── CreateSectionHosizontalSectionController.swift │ ├── FeatureHorizontalScrollSectionController.swift │ └── FeaturedSectionController.swift ├── Sources │ ├── ColorOfPoint │ │ ├── UIView+ColorOfPoint.h │ │ └── UIView+ColorOfPoint.m │ ├── Filters.swift │ ├── Info.plist │ ├── LXReorderableCollectionViewFlowLayout │ │ ├── LXReorderableCollectionViewDataSource.m │ │ └── LXReorderableCollectionViewFlowLayout.h │ ├── Slider.h │ ├── Slider.swift │ └── ValueView.swift ├── SwiftNotice │ └── SwiftNotice.swift ├── Test │ └── Test1ViewController.swift ├── VerticalCardSwiper │ ├── CardCell.swift │ ├── CardDelegate.swift │ ├── CellSwipeDirection.swift │ ├── Extensions.swift │ ├── PanDirection.swift │ ├── VerticalCardSwiper.h │ ├── VerticalCardSwiper.swift │ ├── VerticalCardSwiperDatasource.swift │ ├── VerticalCardSwiperDelegate.swift │ ├── VerticalCardSwiperFlowLayout.swift │ └── VerticalCardSwiperView.swift ├── View │ ├── CapsuleSliderView.swift │ ├── ColorInfo │ │ ├── ColorInfoView.swift │ │ └── FeatureColorInfoView.swift │ ├── Label │ │ └── BottomLineLabel.swift │ ├── PickColor │ │ ├── Base.lproj │ │ │ └── CardPreview.xib │ │ ├── CardPreview.swift │ │ ├── ChooseColorImageView.swift │ │ ├── ColorPinView.swift │ │ ├── ProjectBar.swift │ │ ├── ProjectBar.xib │ │ ├── en.lproj │ │ │ └── CardPreview.strings │ │ ├── zh-Hans.lproj │ │ │ └── CardPreview.strings │ │ └── zh-Hant.lproj │ │ │ └── CardPreview.strings │ ├── Setting │ │ ├── BadgeBoardView.swift │ │ ├── HexColorTextFieldAndButtonView.swift │ │ ├── TextFieldAndButtonView.swift │ │ └── badge_list.plist │ └── Test.storyboard ├── ViewController.swift ├── en.lproj │ ├── InfoPlist.strings │ ├── LaunchScreen.strings │ ├── Localizable.strings │ └── Main.strings ├── fluid-slider │ └── Info.plist ├── ramotion-slider │ └── Info.plist ├── zh-Hans.lproj │ ├── InfoPlist.strings │ ├── LaunchScreen.strings │ ├── Localizable.strings │ └── Main.strings └── zh-Hant.lproj │ ├── InfoPlist.strings │ ├── LaunchScreen.strings │ ├── Localizable.strings │ └── Main.strings ├── ColorKit-SwiftTests ├── ColorKit_SwiftTests.swift └── Info.plist ├── ColorKit-Today ├── Base.lproj │ └── MainInterface.storyboard ├── ColourKit-Today.entitlements ├── Common │ ├── CommonUtil.swift │ └── Constant.swift ├── Extension │ └── UIColor+Extension.swift ├── Helper │ └── SafeDispatch.swift ├── Info.plist └── TodayViewController.swift ├── ColorKit.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── ColorKit ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── Base.lproj │ └── Main.storyboard ├── ColorKit.entitlements ├── Info.plist ├── ViewController.h ├── ViewController.m ├── main.m ├── zh-Hans.lproj │ └── Main.strings └── zh-Hant.lproj │ └── Main.strings ├── ColorKitTests ├── ColorKitTests.m └── Info.plist ├── LICENSE ├── README.md └── assets ├── IMG_0579.PNG ├── IMG_0662.PNG ├── IMG_1817.PNG ├── IMG_1818.PNG ├── IMG_1819.PNG ├── IMG_1821.JPG ├── IMG_1822.PNG └── banner.png /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | 4 | custom: https://chen-dixi.github.io/images/alipay_qr.JPG 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | # Pods/ 38 | 39 | # Carthage 40 | # 41 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 42 | # Carthage/Checkouts 43 | 44 | Carthage/Build 45 | Carthage/ 46 | 47 | # fastlane 48 | # 49 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 50 | # screenshots whenever they are needed. 51 | # For more information about the recommended setup visit: 52 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 53 | 54 | fastlane/report.xml 55 | fastlane/Preview.html 56 | fastlane/screenshots/**/*.png 57 | fastlane/test_output 58 | 59 | # Code Injection 60 | # 61 | # After new code Injection tools there's a generated folder /iOSInjectionProject 62 | # https://github.com/johnno1962/injectionforxcode 63 | 64 | iOSInjectionProject/ 65 | -------------------------------------------------------------------------------- /Cartfile: -------------------------------------------------------------------------------- 1 | github "SnapKit/SnapKit" >= 4.0.0 2 | github "https://github.com/facebook/pop.git" 3 | github "SVProgressHUD/SVProgressHUD" 4 | github "nixzhu/KeyboardMan" 5 | github "Instagram/IGListKit" ~> 3.0 6 | github "Alamofire/Alamofire" ~> 4.7 7 | github "SwiftyJSON/SwiftyJSON" ~> 4.0 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "Alamofire/Alamofire" "4.9.0" 2 | github "Instagram/IGListKit" "3.4.0" 3 | github "SVProgressHUD/SVProgressHUD" "2.2.5" 4 | github "SnapKit/SnapKit" "5.0.1" 5 | github "SwiftyJSON/SwiftyJSON" "4.3.0" 6 | github "facebook/pop" "1.0.12" 7 | github "nixzhu/KeyboardMan" "1.2.3" 8 | -------------------------------------------------------------------------------- /ColorKit-Objc/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ColorKit-Objc 4 | // 5 | // Created by Dixi-Chen on 2018/7/26. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (strong, nonatomic) UIWindow *window; 15 | 16 | @property (readonly, strong) NSPersistentContainer *persistentContainer; 17 | 18 | - (void)saveContext; 19 | 20 | 21 | @end 22 | 23 | -------------------------------------------------------------------------------- /ColorKit-Objc/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /ColorKit-Objc/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ColorKit-Objc/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /ColorKit-Objc/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ColorKit-Objc/ColorKit_Objc.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | ColorKit_Objc.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /ColorKit-Objc/ColorKit_Objc.xcdatamodeld/ColorKit_Objc.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ColorKit-Objc/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ColorKit-Objc/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // ColorKit-Objc 4 | // 5 | // Created by Dixi-Chen on 2018/7/26. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /ColorKit-Objc/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // ColorKit-Objc 4 | // 5 | // Created by Dixi-Chen on 2018/7/26. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view, typically from a nib. 20 | } 21 | 22 | 23 | - (void)didReceiveMemoryWarning { 24 | [super didReceiveMemoryWarning]; 25 | // Dispose of any resources that can be recreated. 26 | } 27 | 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /ColorKit-Objc/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ColorKit-Objc 4 | // 5 | // Created by Dixi-Chen on 2018/7/26. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ColorKit-Objc/zh-Hans.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ColorKit-Objc/zh-Hans.lproj/Main.strings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ColorKit-Objc/zh-Hant.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ColorKit-Objc/zh-Hant.lproj/Main.strings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ColorKit-ObjcTests/ColorKit_ObjcTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // ColorKit_ObjcTests.m 3 | // ColorKit-ObjcTests 4 | // 5 | // Created by Dixi-Chen on 2018/7/26. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ColorKit_ObjcTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation ColorKit_ObjcTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ColorKit-ObjcTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadApp_76pt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadApp_76pt.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadApp_76pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadApp_76pt@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadNotifications_20pt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadNotifications_20pt.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadNotifications_20pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadNotifications_20pt@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadProApp_83.5pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadProApp_83.5pt@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadSpootlight5_29pt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadSpootlight5_29pt.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadSpootlight5_29pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadSpootlight5_29pt@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadSpootlight7_40pt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadSpootlight7_40pt.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadSpootlight7_40pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPadSpootlight7_40pt@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneApp_60pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneApp_60pt@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneApp_60pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneApp_60pt@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneNotification_20pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneNotification_20pt@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneNotification_20pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneNotification_20pt@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneSpootlight5_29pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneSpootlight5_29pt@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneSpootlight5_29pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneSpootlight5_29pt@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneSpootlight7_40pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneSpootlight7_40pt@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneSpootlight7_40pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App IconiPhoneSpootlight7_40pt@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App Iconstore_1024pt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/AppIcon.appiconset/App Iconstore_1024pt.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/App_Icon.imageset/App_Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/App_Icon.imageset/App_Icon.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/App_Icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "App_Icon.png" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "1x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "idiom" : "universal", 17 | "scale" : "3x" 18 | } 19 | ], 20 | "info" : { 21 | "version" : 1, 22 | "author" : "xcode" 23 | } 24 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/App_Icon_round.imageset/App_Icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/App_Icon_round.imageset/App_Icon_round.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/App_Icon_round.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "App_Icon_round.png" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "1x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "idiom" : "universal", 17 | "scale" : "3x" 18 | } 19 | ], 20 | "info" : { 21 | "version" : 1, 22 | "author" : "xcode" 23 | } 24 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/Background.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "235", 13 | "alpha" : "1.000", 14 | "blue" : "240", 15 | "green" : "235" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/ThemeBlue.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "125", 13 | "alpha" : "1.000", 14 | "blue" : "240", 15 | "green" : "190" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/ThemeRed.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "192", 13 | "alpha" : "1.000", 14 | "blue" : "23", 15 | "green" : "10" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/add.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "add@1x.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "add@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "add@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/add.imageset/add@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/add.imageset/add@1x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/add.imageset/add@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/add.imageset/add@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/add.imageset/add@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/add.imageset/add@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/bottom_shadow.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "bottom_shadow@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "bottom_shadow@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/bottom_shadow.imageset/bottom_shadow@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/bottom_shadow.imageset/bottom_shadow@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/bottom_shadow.imageset/bottom_shadow@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/bottom_shadow.imageset/bottom_shadow@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/button_camera_roll.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "button_camera_roll.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/button_camera_roll.imageset/button_camera_roll.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/button_camera_roll.imageset/button_camera_roll.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/commonBackgroundColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "245", 13 | "alpha" : "1.000", 14 | "blue" : "245", 15 | "green" : "245" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/feed_container_background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "feed_container_background.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/feed_container_background.imageset/feed_container_background.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/feed_container_background.imageset/feed_container_background.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_about.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_about.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_about@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_about@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_about.imageset/icon_about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_about.imageset/icon_about.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_about.imageset/icon_about@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_about.imageset/icon_about@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_about.imageset/icon_about@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_about.imageset/icon_about@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_add_center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_add_center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_add_center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_add_center@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_add_center.imageset/icon_add_center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_add_center.imageset/icon_add_center.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_add_center.imageset/icon_add_center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_add_center.imageset/icon_add_center@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_add_center.imageset/icon_add_center@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_add_center.imageset/icon_add_center@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_add_square.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_add_square.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_add_square@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_add_square@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | }, 23 | "properties" : { 24 | "template-rendering-intent" : "template" 25 | } 26 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_add_square.imageset/icon_add_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_add_square.imageset/icon_add_square.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_add_square.imageset/icon_add_square@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_add_square.imageset/icon_add_square@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_add_square.imageset/icon_add_square@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_add_square.imageset/icon_add_square@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_arrow_down.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_arrow_down.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_arrow_down.imageset/icon_arrow_down.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_arrow_down.imageset/icon_arrow_down.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_camera.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_camera.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_camera.imageset/icon_camera.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_camera.imageset/icon_camera.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_card.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_card.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_card@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_card@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_card.imageset/icon_card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_card.imageset/icon_card.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_card.imageset/icon_card@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_card.imageset/icon_card@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_card.imageset/icon_card@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_card.imageset/icon_card@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_card_view.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_card_view.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_card_view.imageset/icon_card_view.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_card_view.imageset/icon_card_view.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_collect_null.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_collect_null.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_collect_null@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_collect_null@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_collect_null.imageset/icon_collect_null.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_collect_null.imageset/icon_collect_null.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_collect_null.imageset/icon_collect_null@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_collect_null.imageset/icon_collect_null@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_collect_null.imageset/icon_collect_null@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_collect_null.imageset/icon_collect_null@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_collect_save.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_collect_save.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_collect_save@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_collect_save@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_collect_save.imageset/icon_collect_save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_collect_save.imageset/icon_collect_save.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_collect_save.imageset/icon_collect_save@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_collect_save.imageset/icon_collect_save@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_collect_save.imageset/icon_collect_save@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_collect_save.imageset/icon_collect_save@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_delete.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_delete.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_delete.imageset/icon_delete.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_delete.imageset/icon_delete.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_download.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_download.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_download@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_download@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | }, 23 | "properties" : { 24 | "template-rendering-intent" : "template" 25 | } 26 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_download.imageset/icon_download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_download.imageset/icon_download.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_download.imageset/icon_download@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_download.imageset/icon_download@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_download.imageset/icon_download@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_download.imageset/icon_download@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_edit.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_edit.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_edit@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_edit@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | }, 23 | "properties" : { 24 | "template-rendering-intent" : "template" 25 | } 26 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_edit.imageset/icon_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_edit.imageset/icon_edit.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_edit.imageset/icon_edit@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_edit.imageset/icon_edit@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_edit.imageset/icon_edit@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_edit.imageset/icon_edit@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_heart.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_heart.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_heart.imageset/badge_heart.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_heart.imageset/badge_heart.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_heart_solid.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_heart_solid.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_heart_solid.imageset/icon_heart_solid.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_heart_solid.imageset/icon_heart_solid.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_image.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_image.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_image@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_image@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_image.imageset/icon_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_image.imageset/icon_image.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_image.imageset/icon_image@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_image.imageset/icon_image@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_image.imageset/icon_image@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_image.imageset/icon_image@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_list_view.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_list_view.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_list_view.imageset/icon_list_view.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_list_view.imageset/icon_list_view.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_more.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_more.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_more.imageset/icon_more.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_more.imageset/icon_more.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_pin.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "pin.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_pin.imageset/pin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_pin.imageset/pin.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_settings.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_settings.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_settings.imageset/icon_settings.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_settings.imageset/icon_settings.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_share.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_share.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_share@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_share@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | }, 23 | "properties" : { 24 | "template-rendering-intent" : "template" 25 | } 26 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_share.imageset/icon_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_share.imageset/icon_share.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_share.imageset/icon_share@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_share.imageset/icon_share@2x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_share.imageset/icon_share@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_share.imageset/icon_share@3x.png -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_up.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_up.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/icon_up.imageset/icon_up.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Assets.xcassets/icon_up.imageset/icon_up.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Assets.xcassets/navigationTint.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "81", 13 | "alpha" : "1.000", 14 | "blue" : "112", 15 | "green" : "82" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_alipay.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_alipay.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_alipay.imageset/badge_alipay.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_alipay.imageset/badge_alipay.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_android.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_android.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_android.imageset/badge_android.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_android.imageset/badge_android.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_apple.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_apple.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_apple.imageset/badge_apple.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_apple.imageset/badge_apple.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_ball.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_ball.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template", 14 | "auto-scaling" : "auto" 15 | } 16 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_ball.imageset/badge_ball.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_ball.imageset/badge_ball.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_bike.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_bike.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_bike.imageset/badge_bike.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_bike.imageset/badge_bike.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_bubble.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_bubble.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_bubble.imageset/badge_bubble.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_bubble.imageset/badge_bubble.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_building.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_building.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_building.imageset/badge_building.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_building.imageset/badge_building.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_camera.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_camera.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_camera.imageset/badge_camera.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_camera.imageset/badge_camera.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_dribbble.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_dribbble.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_dribbble.imageset/badge_dribbble.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_dribbble.imageset/badge_dribbble.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_dropbox.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_dropbox.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_dropbox.imageset/badge_dropbox.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_dropbox.imageset/badge_dropbox.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_facebook.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_facebook.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_facebook.imageset/badge_facebook.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_facebook.imageset/badge_facebook.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_game.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_game.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_game.imageset/badge_game.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_game.imageset/badge_game.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_github.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_github.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_github.imageset/badge_github.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_github.imageset/badge_github.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_heart.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_heart.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_heart.imageset/badge_heart.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_heart.imageset/badge_heart.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_html5.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_html5.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_html5.imageset/badge_html5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_html5.imageset/badge_html5.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_instagram.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_instagram.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_instagram.imageset/badge_instagram.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_instagram.imageset/badge_instagram.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_linkedin.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_linkedin.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_linkedin.imageset/badge_linkedin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_linkedin.imageset/badge_linkedin.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_linux.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_linux.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_linux.imageset/badge_linux.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_linux.imageset/badge_linux.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_local.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_local.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_local.imageset/badge_local.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_local.imageset/badge_local.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_meditation.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_meditation.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_meditation.imageset/badge_meditation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_meditation.imageset/badge_meditation.png -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_music.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_music.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_music.imageset/badge_music.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_music.imageset/badge_music.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_palette.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_palette.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_palette.imageset/badge_palette.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_palette.imageset/badge_palette.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_pet.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_pet.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_pet.imageset/badge_pet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_pet.imageset/badge_pet.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_pinterest.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_pinterest.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_pinterest.imageset/badge_pinterest.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_pinterest.imageset/badge_pinterest.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_plane.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_plane.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_plane.imageset/badge_plane.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_plane.imageset/badge_plane.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_plane_up.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_plane_up.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_plane_up.imageset/badge_plane_up.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_plane_up.imageset/badge_plane_up.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_playstation.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_playstation.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_playstation.imageset/badge_playstation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_playstation.imageset/badge_playstation.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_python.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_python.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_python.imageset/badge_python.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_python.imageset/badge_python.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_reddit.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_reddit.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_reddit.imageset/badge_reddit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_reddit.imageset/badge_reddit.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_renren.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_renren.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_renren.imageset/badge_renren.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_renren.imageset/badge_renren.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_science.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_sience.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_science.imageset/badge_sience.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_science.imageset/badge_sience.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_skype.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_skype.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_skype.imageset/badge_skype.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_skype.imageset/badge_skype.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_slack.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_slack.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_slack.imageset/badge_slack.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_slack.imageset/badge_slack.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_snapchat.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_snapchat.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_snapchat.imageset/badge_snapchat.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_snapchat.imageset/badge_snapchat.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_star.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_star.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_star.imageset/badge_star.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_star.imageset/badge_star.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_steve.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_steve.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_steve.imageset/badge_steve.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_steve.imageset/badge_steve.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_tag.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_tag.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_tag.imageset/badge_tag.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_tag.imageset/badge_tag.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_taobao.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_taobao.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_taobao.imageset/badge_taobao.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_taobao.imageset/badge_taobao.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_tech.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_tech.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_tech.imageset/badge_tech.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_tech.imageset/badge_tech.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_tieba.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_tieba.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_tieba.imageset/badge_tieba.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_tieba.imageset/badge_tieba.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_tumblr.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_tumblr.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_tumblr.imageset/badge_tumblr.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_tumblr.imageset/badge_tumblr.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_twitch.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_twitch.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_twitch.imageset/badge_twitch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_twitch.imageset/badge_twitch.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_twitter.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_twitter.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_twitter.imageset/badge_twitter.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_twitter.imageset/badge_twitter.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_weather.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_weather.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_weather.imageset/badge_weather.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_weather.imageset/badge_weather.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_weibo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_weibo.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_weibo.imageset/badge_weibo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_weibo.imageset/badge_weibo.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_weixin.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_weixin.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_weixin.imageset/badge_weixin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_weixin.imageset/badge_weixin.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_whatsapp.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_whatsapp.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_whatsapp.imageset/badge_whatsapp.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_whatsapp.imageset/badge_whatsapp.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_windows.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_windows.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_windows.imageset/badge_windows.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_windows.imageset/badge_windows.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_wine.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_wine.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_wine.imageset/badge_wine.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_wine.imageset/badge_wine.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_xbox.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_xbox.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_xbox.imageset/badge_xbox.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_xbox.imageset/badge_xbox.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_zhihu.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "badge_zhihu.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/badge_zhihu.imageset/badge_zhihu.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/badge_zhihu.imageset/badge_zhihu.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/enabled_badge_background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "enabled_badge_background.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /ColorKit-Swift/Bades.xcassets/enabled_badge_background.imageset/enabled_badge_background.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Bades.xcassets/enabled_badge_background.imageset/enabled_badge_background.pdf -------------------------------------------------------------------------------- /ColorKit-Swift/Cell/AppendColor/BatchCreateColorCollectionCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BatchCreateColorCollectionCell.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/11/1. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SnapKit 11 | 12 | protocol RemoveCellDelegate: class { 13 | func removeCellDidTapButton(_ cell: BatchCreateColorCollectionCell) 14 | } 15 | 16 | 17 | class BatchCreateColorCollectionCell: UICollectionViewCell { 18 | 19 | @IBOutlet weak var nameLabel: UILabel! 20 | @IBOutlet weak var deleteBtn: UIButton! 21 | 22 | 23 | weak var delegate: RemoveCellDelegate? 24 | override func awakeFromNib() { 25 | super.awakeFromNib() 26 | // Initialization code 27 | // - collectionViewMinimumLineSpacing 28 | // let width = height / screenRatio 29 | 30 | 31 | } 32 | 33 | override func layoutSubviews() { 34 | layer.cornerRadius = 8 35 | 36 | layer.shadowColor = UIColor.lightGray.cgColor 37 | layer.shadowOffset = CGSize.zero 38 | layer.shadowOpacity = 0.6 39 | //不知为何,contentView的范围比cell本身大 40 | contentView.frame = bounds 41 | } 42 | 43 | func setColor(_ featureColor:MyColor){ 44 | let color = UIColor(red: CGFloat(featureColor.r)/255.0, green: CGFloat(featureColor.g)/255.0, blue: CGFloat(featureColor.b)/255.0, alpha: 1.0) 45 | backgroundColor = color 46 | let textColor = CommonUtil.getClearTextColor(backgroundColor: color) 47 | 48 | nameLabel.text = String(featureColor.name.prefix(1)) 49 | nameLabel.textColor = textColor 50 | } 51 | @IBAction func remove(_ sender: UIButton) { 52 | if let collectionView = self.superview as? UICollectionView,let indexPath:IndexPath = collectionView.indexPathForItem(at: self.center){ 53 | 54 | collectionView.delegate?.collectionView?(collectionView, performAction: #selector(remove(_:)), forItemAt: indexPath, withSender: nil) 55 | } 56 | } 57 | 58 | override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { 59 | var view = deleteBtn.hitTest(deleteBtn.convert(point, from: self), with: event) 60 | if view == nil { 61 | view = super.hitTest(point, with: event) 62 | } 63 | 64 | return view 65 | } 66 | 67 | override func point(inside point: CGPoint, with event: UIEvent?) -> Bool { 68 | if super.point(inside: point, with: event){ 69 | return true 70 | } 71 | 72 | return !deleteBtn.isHidden && deleteBtn.point(inside: deleteBtn.convert(point, from: self), with: event) 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /ColorKit-Swift/Cell/ColorTitleCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ColorTitleCell.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/5/9. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ColorTitleCell: UITableViewCell { 12 | 13 | @IBOutlet weak var titleLabel: UILabel! 14 | 15 | @IBOutlet weak var iconImageView: UIImageView! 16 | 17 | override func awakeFromNib() { 18 | super.awakeFromNib() 19 | // Initialization code 20 | } 21 | 22 | override func setSelected(_ selected: Bool, animated: Bool) { 23 | super.setSelected(selected, animated: animated) 24 | 25 | // Configure the view for the selected state 26 | } 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /ColorKit-Swift/Cell/ColorTitleCollectionCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ColorTitleCollectionCell.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/9/21. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ColorTitleCollectionCell: BaseSwipeLeftCollectionViewCell { 12 | 13 | @IBOutlet weak var badgeImageView: UIImageView! 14 | 15 | @IBOutlet weak var titleLabel: UILabel! 16 | 17 | @IBOutlet weak var deleteBtn: UIButton! 18 | private var originCenter :CGPoint = CGPoint.zero 19 | 20 | 21 | 22 | 23 | override func layoutSubviews() { 24 | 25 | 26 | 27 | super.layoutSubviews() 28 | } 29 | 30 | override func awakeFromNib() { 31 | super.awakeFromNib() 32 | // Initialization code 33 | //NotificationCenter.default.post(name: NSNotification.Name(rawValue: "SwipeCellLeft"), object: nil) 34 | 35 | 36 | layer.cornerRadius = 12 37 | layer.shadowColor = UIColor.lightGray.cgColor 38 | layer.shadowOffset = CGSize.zero 39 | //layer.shadowRadius = 2 40 | //layer.masksToBounds = false 41 | layer.shadowOpacity = 0.2 42 | 43 | //layer.shadowPath = UIBezierPath(roundedRect: bounds, cornerRadius: layer.cornerRadius).cgPath 44 | 45 | } 46 | 47 | @IBAction func deleteItem(_ sender: UIButton) { 48 | handleTap() 49 | if let collectionView = self.superview as? UICollectionView,let indexPath:IndexPath = collectionView.indexPathForItem(at: self.center){ 50 | 51 | collectionView.delegate?.collectionView?(collectionView, performAction: #selector(deleteItem(_:)), forItemAt: indexPath, withSender: nil) 52 | } 53 | } 54 | 55 | override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { 56 | var view = deleteBtn.hitTest(deleteBtn.convert(point, from: self), with: event) 57 | if view == nil { 58 | view = super.hitTest(point, with: event) 59 | } 60 | 61 | return view 62 | } 63 | 64 | override func point(inside point: CGPoint, with event: UIEvent?) -> Bool { 65 | if super.point(inside: point, with: event){ 66 | return true 67 | } 68 | 69 | return !deleteBtn.isHidden && deleteBtn.point(inside: deleteBtn.convert(point, from: self), with: event) 70 | } 71 | 72 | 73 | } 74 | //(-translate.x) / sqrt(pow(translate.x, 2)+pow(translate.y, 2)) > 0.5 75 | 76 | -------------------------------------------------------------------------------- /ColorKit-Swift/Cell/Featured/EmbeddedCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EmbeddedCollectionViewCell.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/10/30. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import IGListKit 10 | import UIKit 11 | 12 | final class EmbeddedCollectionViewCell: UICollectionViewCell { 13 | 14 | lazy var collectionView: UICollectionView = { 15 | let layout = UICollectionViewFlowLayout() 16 | layout.scrollDirection = .horizontal 17 | let view = UICollectionView(frame: .zero, collectionViewLayout: layout) 18 | view.backgroundColor = .white 19 | view.alwaysBounceVertical = false 20 | view.alwaysBounceHorizontal = true 21 | view.showsVerticalScrollIndicator = false 22 | view.showsHorizontalScrollIndicator = false 23 | self.contentView.addSubview(view) 24 | return view 25 | }() 26 | 27 | override func layoutSubviews() { 28 | super.layoutSubviews() 29 | collectionView.frame = contentView.frame 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /ColorKit-Swift/Cell/Featured/FeatureColorCardCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FeatureColorCardCollectionViewCell.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/10/30. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class FeatureColorCardCollectionViewCell: UICollectionViewCell { 12 | 13 | 14 | @IBOutlet weak var hexLabel: UILabel! 15 | 16 | 17 | override func awakeFromNib() { 18 | super.awakeFromNib() 19 | // Initialization code 20 | 21 | 22 | layer.cornerRadius = 8 23 | contentView.layer.cornerRadius = 8 24 | layer.shadowColor = UIColor.lightGray.cgColor 25 | layer.shadowOffset = CGSize.zero 26 | 27 | //layer.shadowRadius = 2 28 | //layer.masksToBounds = false 29 | 30 | layer.shadowOpacity = 0.6 31 | 32 | } 33 | 34 | 35 | func setColor(_ featureColor:FeatureColor){ 36 | let color = UIColor(red: featureColor.r/255.0, green: featureColor.g/255.0, blue: featureColor.b/255.0, alpha: 1.0) 37 | backgroundColor = color 38 | let textColor = CommonUtil.getClearTextColor(backgroundColor: color) 39 | let hextext = CommonUtil.hexColorString(red: featureColor.r, green: featureColor.g, blue: featureColor.b) 40 | hexLabel.text = hextext 41 | hexLabel.textColor = textColor 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /ColorKit-Swift/Cell/Featured/FeatureTitleCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FeatureTitleCollectionViewCell.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/10/31. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | protocol FunctionalCellDelegate:class { 12 | func functionButtonDidTap(_ cell:UICollectionViewCell) 13 | } 14 | 15 | class FeatureTitleCollectionViewCell: UICollectionViewCell { 16 | 17 | weak var delegate:FunctionalCellDelegate? 18 | 19 | @IBOutlet weak var titleLabel: UILabel! 20 | 21 | @IBOutlet weak var downloadBtn: UIButton! 22 | 23 | override func awakeFromNib() { 24 | super.awakeFromNib() 25 | // Initialization code 26 | backgroundColor = .white 27 | } 28 | 29 | 30 | @IBAction func download(_ sender: UIButton) { 31 | sender.antiMultiplyTouch(delay: 0.3) {} 32 | delegate?.functionButtonDidTap(self) 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /ColorKit-Swift/Cell/Featured/FeaturedColorCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FeaturedColorCell.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/9/16. 6 | // Copyright © 2018 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class FeaturedColorCell: UITableViewCell { 12 | 13 | @IBOutlet weak var titleLabel: UILabel! 14 | @IBOutlet weak var subtitleLabel: UILabel! 15 | 16 | override func awakeFromNib() { 17 | super.awakeFromNib() 18 | // Initialization code 19 | } 20 | 21 | override func setSelected(_ selected: Bool, animated: Bool) { 22 | super.setSelected(selected, animated: animated) 23 | 24 | // Configure the view for the selected state 25 | } 26 | 27 | public func setColor(featureColor:FeatureColor){ 28 | let color = UIColor(red: featureColor.r/255.0, green: featureColor.g/255.0, blue: featureColor.b/255.0, alpha: 1.0) 29 | let visibleColor = CommonUtil.getClearTextColor(backgroundColor: color) 30 | backgroundColor = color 31 | titleLabel.textColor = visibleColor 32 | subtitleLabel.textColor = visibleColor 33 | titleLabel.text = featureColor.name 34 | subtitleLabel.text = featureColor.projectName 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /ColorKit-Swift/ColorKit-Swift-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // ColorKit-Swift-Bridging-Header.h 3 | // ColorKit 4 | // 5 | // Created by Dixi-Chen on 2018/9/12. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | 10 | #import "LXReorderableCollectionViewFlowLayout.h" 11 | #import "UIView+ColorOfPoint.h" 12 | -------------------------------------------------------------------------------- /ColorKit-Swift/ColorKit-Swift.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | aps-environment 6 | development 7 | com.apple.security.application-groups 8 | 9 | group.cdx.ColourKitGroup 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /ColorKit-Swift/ColorKit_Swift.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | ColorKit_Swift.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /ColorKit-Swift/ColorKit_Swift.xcdatamodeld/ColorKit_Swift.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /ColorKit-Swift/Common/Constant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Constant.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/5/25. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | 10 | import UIKit 11 | let screenWidth = UIScreen.main.bounds.width 12 | let screenHeight = UIScreen.main.bounds.height 13 | let statusBarHeight = UIApplication.shared.statusBarFrame.height 14 | let footerFrame1 = CGRect(x: 0, y: 0, width: screenWidth, height: 48) 15 | let screenRatio = screenHeight / screenWidth 16 | let labelColorThreshold:CGFloat = 2.3 17 | 18 | let collectionViewWidth = screenWidth*0.35 19 | let collectionViewMinimumLineSpacing:CGFloat = 18 20 | let collectionViewInsets = screenWidth*0.1125 21 | 22 | 23 | struct Font_Light { 24 | static let Size_24=UIFont(name: "PingFangSC-Light",size: 24) 25 | static let Size_20=UIFont(name: "PingFangSC-Light",size: 20) 26 | static let Size_17=UIFont(name: "PingFangSC-Light",size: 17) 27 | static let Size_16=UIFont(name: "PingFangSC-Light",size: 16) 28 | static let Size_18=UIFont(name: "PingFangSC-Light",size: 18) 29 | static let Size_15=UIFont(name: "PingFangSC-Light",size: 15) 30 | static let Size_13=UIFont(name: "PingFangSC-Light",size: 13) 31 | static let Size_12=UIFont(name: "PingFangSC-Light",size: 12) 32 | static let Size_11=UIFont(name: "PingFangSC-Light", size: 11) 33 | } 34 | struct Font_Regular { 35 | static let Size_30=UIFont(name:"PingFangSC-Regular",size: 30) 36 | static let Size_24=UIFont(name:"PingFangSC-Regular",size: 24) 37 | static let Size_17=UIFont(name:"PingFangSC-Regular",size: 17) 38 | static let Size_15=UIFont(name:"PingFangSC-Regular",size: 15) 39 | static let Size_11=UIFont(name:"PingFangSC-Regular",size: 11) 40 | static let Size_12=UIFont(name:"PingFangSC-Regular",size: 12) 41 | } 42 | 43 | struct Font_Hiragino{ 44 | //static let Size_30=UIFont(name:"HiraMinProN-W6",size: 30) 45 | static let Size_30=UIFont(name:"FandolSong-Bold",size: 30) 46 | } 47 | 48 | struct Font_FandolSong_Bold{ 49 | static let Size_30=UIFont(name:"FandolSong-Bold",size: 30) 50 | } 51 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/AppendColor/zh-Hans.lproj/CreateColorFromImageViewController.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UIBarButtonItem"; title = "保存"; ObjectID = "7HS-1b-3Ea"; */ 3 | "7HS-1b-3Ea.title" = "保存"; 4 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/AppendColor/zh-Hant.lproj/CreateColorFromImageViewController.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UIBarButtonItem"; title = "保存"; ObjectID = "7HS-1b-3Ea"; */ 3 | "7HS-1b-3Ea.title" = "保存"; 4 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/Base/PresentBaseViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PresentBaseViewController.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/9/13. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class PresentBaseViewController: BaseViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(dismissvc)) 16 | self.modalPresentationStyle = .fullScreen 17 | // Do any additional setup after loading the view. 18 | } 19 | 20 | override func didReceiveMemoryWarning() { 21 | super.didReceiveMemoryWarning() 22 | // Dispose of any resources that can be recreated. 23 | } 24 | 25 | @objc 26 | private func dismissvc(){ 27 | dismiss(animated: true, completion: nil) 28 | } 29 | 30 | override func motionBegan(_ motion: UIEvent.EventSubtype, with event: UIEvent?) { 31 | if(motion == UIEvent.EventSubtype.motionShake){ 32 | dismiss(animated: true, completion: nil) 33 | } 34 | } 35 | /* 36 | // MARK: - Navigation 37 | 38 | // In a storyboard-based application, you will often want to do a little preparation before navigation 39 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 40 | // Get the new view controller using segue.destinationViewController. 41 | // Pass the selected object to the new view controller. 42 | } 43 | */ 44 | 45 | } 46 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/BaseViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BaseViewController.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/5/4. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class BaseViewController: UIViewController { 12 | 13 | 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | 18 | // Do any additional setup after loading the view. 19 | view.backgroundColor = UIColor.CommonViewBackgroundColor() 20 | } 21 | 22 | override func didReceiveMemoryWarning() { 23 | super.didReceiveMemoryWarning() 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | 28 | /* 29 | // MARK: - Navigation 30 | 31 | // In a storyboard-based application, you will often want to do a little preparation before navigation 32 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 33 | // Get the new view controller using segue.destinationViewController. 34 | // Pass the selected object to the new view controller. 35 | } 36 | */ 37 | 38 | } 39 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/ColorInfo/ColorInfoViewController.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/Me/zh-Hans.lproj/MyViewController.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "分享给朋友"; ObjectID = "DJO-ZU-iwu"; */ 3 | "DJO-ZU-iwu.text" = "分享给朋友"; 4 | 5 | /* Class = "UILabel"; text = "关于配色笔记"; ObjectID = "HaC-g2-K6H"; */ 6 | "HaC-g2-K6H.text" = "关于配色笔记"; 7 | 8 | /* Class = "UILabel"; text = "隐私协议"; ObjectID = "LAx-lM-rym"; */ 9 | "LAx-lM-rym.text" = "隐私协议"; 10 | 11 | /* Class = "UITableViewSection"; headerTitle = "关于作者"; ObjectID = "OXH-c1-cv5"; */ 12 | "OXH-c1-cv5.headerTitle" = "关于作者"; 13 | 14 | /* Class = "UILabel"; text = "精选"; ObjectID = "iXh-Bf-5RA"; */ 15 | "iXh-Bf-5RA.text" = "精选"; 16 | 17 | /* Class = "UILabel"; text = "Weibo"; ObjectID = "jC6-Gu-MQv"; */ 18 | "jC6-Gu-MQv.text" = "微博"; 19 | 20 | /* Class = "UITableViewSection"; headerTitle = "其他"; ObjectID = "m3P-uF-uKz"; */ 21 | "m3P-uF-uKz.headerTitle" = "其他"; 22 | 23 | /* Class = "UILabel"; text = "App Store 评论"; ObjectID = "v8v-lI-Pso"; */ 24 | "v8v-lI-Pso.text" = "App Store 评论"; 25 | 26 | /* Class = "UITableViewSection"; headerTitle = "通用"; ObjectID = "wPn-Yi-gEC"; */ 27 | "wPn-Yi-gEC.headerTitle" = "通用"; 28 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/Navi/InteractiveTransitionNavigationController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // InteractiveTransitionNavigationController.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2019/2/22. 6 | // Copyright © 2019年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | //present 这个navigation controller,可以通过左滑dismiss 11 | class InteractiveTransitionNavigationController: BaseNavigationController,UIViewControllerTransitioningDelegate { 12 | 13 | var interactiveTransitionController:CloseColorCardInteractiveTransition! 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | transitioningDelegate = self 18 | modalPresentationStyle = .custom 19 | interactiveTransitionController = CloseColorCardInteractiveTransition() 20 | interactiveTransitionController.addPanGestureAndHookDelegate(for: self) 21 | // Do any additional setup after loading the view. 22 | } 23 | 24 | override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { 25 | if gestureRecognizer == interactivePopGestureRecognizer { 26 | if self.viewControllers.count < 2 || self.visibleViewController == self.viewControllers[0] { 27 | return false 28 | } 29 | } 30 | 31 | if gestureRecognizer == interactiveTransitionController.edgeGestureRecognizer { 32 | if self.viewControllers.count >= 2 || self.visibleViewController != self.viewControllers[0] { 33 | return false 34 | } 35 | } 36 | 37 | return true 38 | } 39 | 40 | 41 | func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? { 42 | 43 | return SystemCloseTransition() 44 | } 45 | 46 | func interactionControllerForDismissal(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? { 47 | 48 | return interactiveTransitionController.interaction ? interactiveTransitionController:nil 49 | } 50 | 51 | 52 | /* 53 | // MARK: - Navigation 54 | 55 | // In a storyboard-based application, you will often want to do a little preparation before navigation 56 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 57 | // Get the new view controller using segue.destination. 58 | // Pass the selected object to the new view controller. 59 | } 60 | */ 61 | 62 | } 63 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/ProjectSetting/en.lproj/ProjectSettingViewController.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "图标"; ObjectID = "3Qu-4m-4Kf"; */ 3 | "3Qu-4m-4Kf.text" = "Badge"; 4 | 5 | /* Class = "UITableViewSection"; headerTitle = "项目设置"; ObjectID = "Gqe-9c-vde"; */ 6 | "Gqe-9c-vde.headerTitle" = "Project Setting"; 7 | 8 | /* Class = "UILabel"; text = "Detail"; ObjectID = "HCx-Dm-4eA"; */ 9 | "HCx-Dm-4eA.text" = "Detail"; 10 | 11 | /* Class = "UILabel"; text = "名称"; ObjectID = "Jiv-hV-lhb"; */ 12 | "Jiv-hV-lhb.text" = "Project Name"; 13 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/ProjectSetting/zh-Hans.lproj/ProjectSettingViewController.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "图标"; ObjectID = "3Qu-4m-4Kf"; */ 3 | "3Qu-4m-4Kf.text" = "图标"; 4 | 5 | /* Class = "UITableViewSection"; headerTitle = "项目设置"; ObjectID = "Gqe-9c-vde"; */ 6 | "Gqe-9c-vde.headerTitle" = "项目设置"; 7 | 8 | /* Class = "UILabel"; text = "Detail"; ObjectID = "HCx-Dm-4eA"; */ 9 | "HCx-Dm-4eA.text" = "Detail"; 10 | 11 | /* Class = "UILabel"; text = "名称"; ObjectID = "Jiv-hV-lhb"; */ 12 | "Jiv-hV-lhb.text" = "项目名称"; 13 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/ProjectSetting/zh-Hant.lproj/ProjectSettingViewController.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "图标"; ObjectID = "3Qu-4m-4Kf"; */ 3 | "3Qu-4m-4Kf.text" = "圖標"; 4 | 5 | /* Class = "UITableViewSection"; headerTitle = "项目设置"; ObjectID = "Gqe-9c-vde"; */ 6 | "Gqe-9c-vde.headerTitle" = "項目設置"; 7 | 8 | /* Class = "UILabel"; text = "Detail"; ObjectID = "HCx-Dm-4eA"; */ 9 | "HCx-Dm-4eA.text" = "Detail"; 10 | 11 | /* Class = "UILabel"; text = "名称"; ObjectID = "Jiv-hV-lhb"; */ 12 | "Jiv-hV-lhb.text" = "項目名稱"; 13 | -------------------------------------------------------------------------------- /ColorKit-Swift/Controller/WholeScheme/ColorBlendingViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ColorPlendingViewController.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2019/2/22. 6 | // Copyright © 2019年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ColorBlendingViewController: UIViewController { 12 | 13 | var project:Project! 14 | //和CoreData相关的 Color 15 | var colors:[Color] = [] 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | 20 | // Do any additional setup after loading the view. 21 | } 22 | 23 | 24 | /* 25 | // MARK: - Navigation 26 | 27 | // In a storyboard-based application, you will often want to do a little preparation before navigation 28 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 29 | // Get the new view controller using segue.destination. 30 | // Pass the selected object to the new view controller. 31 | } 32 | */ 33 | 34 | } 35 | -------------------------------------------------------------------------------- /ColorKit-Swift/Entity/AppendColorHelper.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppenColorHelper.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/11/1. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | import CoreData 12 | 13 | protocol AppendColorHelperDelegate: class { 14 | func helperDidUpdate(helper: AppendColorHelper) 15 | func helperIsEmpty(isEmpty:Bool) 16 | } 17 | 18 | class AppendColorHelper:NSObject{ 19 | weak var delegate:AppendColorHelperDelegate? 20 | var colors:[MyColor] = []{ 21 | didSet{ 22 | delegate?.helperIsEmpty(isEmpty: colors.isEmpty) 23 | } 24 | } 25 | 26 | func append(_ color:MyColor){ 27 | colors.append(color) 28 | } 29 | 30 | var count:Int{ 31 | return colors.count 32 | } 33 | 34 | func performBatchSave(_ project:Project,finished callback:@escaping ()->Void){ 35 | guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else{ 36 | return 37 | } 38 | 39 | let managedContext = appDelegate.persistentContainer.viewContext 40 | let entity = 41 | NSEntityDescription.entity(forEntityName: "Color", 42 | in: managedContext)! 43 | DispatchQueue.global().async { 44 | for color in self.colors{ 45 | let newColor = Color(entity: entity, insertInto: managedContext) 46 | 47 | newColor.setValue(color.name, forKey: "name") 48 | newColor.setValue(color.r, forKey: "r") 49 | newColor.setValue(color.g, forKey: "g") 50 | newColor.setValue(color.b, forKey: "b") 51 | newColor.setValue(project, forKey: "project") 52 | newColor.setValue(false, forKey: "collect") 53 | newColor.setValue(Date(), forKey: "createdAt") 54 | 55 | } 56 | UserDefaultsTool.recentColorNameInGroup.value = self.colors.last?.name 57 | SafeDispatch.async(forWork: { 58 | appDelegate.saveContext() 59 | callback() 60 | }) 61 | } 62 | 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /ColorKit-Swift/Entity/FeatureColor.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FeatureColor.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/9/16. 6 | // Copyright © 2018 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | class MyColor:NSObject{ 12 | public var r:Int32=0 13 | public var g:Int32=0 14 | public var b:Int32=0 15 | public var name:String="" 16 | public var projectName:String="" 17 | 18 | 19 | 20 | init(name:String, r:Int32, g:Int32, b:Int32) { 21 | self.name = name 22 | self.r = r 23 | self.g = g 24 | self.b = b 25 | } 26 | 27 | } 28 | class FeatureColor: NSObject{ 29 | public var r:CGFloat=0 30 | public var g:CGFloat=0 31 | public var b:CGFloat=0 32 | public var name:String="" 33 | public var projectName:String="" 34 | 35 | 36 | 37 | init(name:String, r:CGFloat, g:CGFloat, b:CGFloat) { 38 | self.name = name 39 | self.r = r 40 | self.g = g 41 | self.b = b 42 | } 43 | } 44 | 45 | 46 | -------------------------------------------------------------------------------- /ColorKit-Swift/Entity/FeatureProject.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FeatureProject.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/10/30. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | 12 | class FeatureProject:NSObject{ 13 | 14 | var name:String 15 | var colors:[FeatureColor] 16 | 17 | init(name:String, colors:[FeatureColor]){ 18 | self.name = name 19 | self.colors = colors 20 | } 21 | } 22 | 23 | 24 | -------------------------------------------------------------------------------- /ColorKit-Swift/Entity/FeaturedLoader.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FeaturedLoader.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/10/30. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import Alamofire 11 | import SwiftyJSON 12 | 13 | let ip = "http://120.79.69.249/colorKit/featured/list/" 14 | protocol FeaturedLoaderDelegate: class { 15 | func featuredLoaderDidUpdate(featuredLoader: FeaturedLoader) 16 | } 17 | class FeaturedLoader{ 18 | weak var delegate:FeaturedLoaderDelegate? 19 | var entries = [FeatureProject](){ 20 | didSet { 21 | delegate?.featuredLoaderDidUpdate(featuredLoader: self) 22 | } 23 | } 24 | 25 | func load(){ 26 | // let colors = [ 27 | // FeatureColor(name: "", r: 252.0, g: 187.0, b: 109), 28 | // FeatureColor(name: "", r: 216.0, g: 115.0, b: 127.0), 29 | // FeatureColor(name: "", r: 171.0, g: 108.0, b: 130.0), 30 | // FeatureColor(name: "", r: 104.0, g: 93.0, b: 121.0), 31 | // FeatureColor(name: "", r: 71.0, g: 92.0, b: 122.0) 32 | // ] 33 | // let project = FeatureProject(name: "好看", colors: colors) 34 | // self.entries.append(project) 35 | Alamofire.request(ip, method: .get, parameters: nil).responseJSON { (response) in 36 | switch response.result{ 37 | case .success(let value): 38 | let arr = JSON(value) 39 | var projects = [FeatureProject]() 40 | for i in 0.. NSObjectProtocol { 30 | return self 31 | } 32 | 33 | public func isEqual(toDiffableObject object: ListDiffable?) -> Bool { 34 | return isEqual(object) 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /ColorKit-Swift/Extension/UIButton+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIButton+Extension.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/8/18. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIButton 12 | { 13 | func antiMultiplyTouch(delay : TimeInterval, closure:@escaping ()->Void) 14 | { 15 | self.isUserInteractionEnabled = false 16 | 17 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { 18 | // your code here 19 | self.isUserInteractionEnabled = true 20 | closure() 21 | } 22 | // dispatch_after( 23 | // dispatch_time( 24 | // dispatch_time_t(DISPATCH_TIME_NOW), 25 | // Int64(delay * Double(NSEC_PER_SEC)) 26 | // ), 27 | // dispatch_get_main_queue(), { 28 | // self.userInteractionEnabled = true 29 | // closure() 30 | // }) 31 | } 32 | } 33 | extension UILabel 34 | { 35 | func antiMultiplyTouch(delay : TimeInterval, closure:@escaping ()->Void) 36 | { 37 | self.isUserInteractionEnabled = false 38 | 39 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { 40 | // your code here 41 | self.isUserInteractionEnabled = true 42 | closure() 43 | } 44 | // dispatch_after( 45 | // dispatch_time( 46 | // dispatch_time_t(DISPATCH_TIME_NOW), 47 | // Int64(delay * Double(NSEC_PER_SEC)) 48 | // ), 49 | // dispatch_get_main_queue(), { 50 | // self.userInteractionEnabled = true 51 | // closure() 52 | // }) 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /ColorKit-Swift/Extension/UIColor+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+Extension.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/5/9. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIColor{ 12 | class func CellSeparatorColor() -> UIColor { 13 | return UIColor.lightGray.withAlphaComponent(0.3) 14 | } 15 | 16 | class func TableViewBackgroundColor() -> UIColor{ 17 | return UIColor(red: 235/255, green: 235/255, blue: 240/255, alpha: 1.00) 18 | } 19 | 20 | class func NavigationBarTintColor() -> UIColor{ 21 | return UIColor(red:81/255, green:82/255,blue:112/255,alpha:1.00) 22 | } 23 | 24 | class func TabBarTintColor() -> UIColor{ 25 | return UIColor(red: 9.0/255.0, green: 10.0/255.0, blue: 2.0/255.0, alpha: 1.0) 26 | } 27 | 28 | class func ColorKitRed() -> UIColor{ 29 | return UIColor(red:192/255, green:10/255,blue:23/255,alpha:1.00) 30 | } 31 | 32 | class func ColorKitGreen() -> UIColor{ 33 | return UIColor(red:45/255, green:176/255,blue:101/255,alpha:1.00) 34 | } 35 | 36 | class func ColorKitBlue() -> UIColor{ 37 | return UIColor(red:125/255, green:190/255,blue:240/255,alpha:1.00) 38 | } 39 | 40 | class func CommonViewBackgroundColor() -> UIColor{ 41 | return UIColor(red: 245/255, green: 245/255, blue: 245/255, alpha: 1.00) 42 | } 43 | 44 | class func rgbColorFromHex(rgb:Int) ->UIColor { 45 | 46 | return UIColor(red: ((CGFloat)((rgb & 0xFF0000) >> 16)) / 255.0, 47 | green: ((CGFloat)((rgb & 0xFF00) >> 8)) / 255.0, 48 | blue: ((CGFloat)(rgb & 0xFF)) / 255.0, 49 | alpha: 1.0) 50 | } 51 | 52 | 53 | } 54 | -------------------------------------------------------------------------------- /ColorKit-Swift/Extension/UITableView+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITableView+Extension.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/5/10. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | // 12 | // UITableView+XiaoDi.swift 13 | // XiaoDi 14 | // 15 | // Created by Dixi-Chen on 16/9/7. 16 | // Copyright © 2016年 Dixi-Chen. All rights reserved. 17 | // 18 | 19 | import UIKit 20 | 21 | extension UITableView{ 22 | func registerClassOf(_: T.Type) { 23 | 24 | register(T.self, forCellReuseIdentifier: T.reuseIdentifier) 25 | } 26 | 27 | func registerNibOf(_: T.Type) { 28 | 29 | let nib = UINib(nibName: T.nibName, bundle: nil) 30 | register(nib, forCellReuseIdentifier: T.reuseIdentifier) 31 | } 32 | 33 | func registerHeaderFooterClassOf(_: T.Type) { 34 | 35 | register(T.self, forHeaderFooterViewReuseIdentifier: T.reuseIdentifier) 36 | } 37 | 38 | func dequeueReusableCell() -> T { 39 | 40 | guard let cell = self.dequeueReusableCell(withIdentifier: T.reuseIdentifier) as? T else { 41 | fatalError("Could not dequeue cell with identifier: \(T.reuseIdentifier)") 42 | } 43 | 44 | return cell 45 | } 46 | 47 | func dequeueReusableHeaderFooter() -> T { 48 | 49 | guard let view = dequeueReusableHeaderFooterView(withIdentifier: T.reuseIdentifier) as? T else { 50 | fatalError("Could not dequeue HeaderFooter with identifier: \(T.reuseIdentifier)") 51 | } 52 | 53 | return view 54 | } 55 | 56 | } 57 | 58 | extension UICollectionView{ 59 | func registerNibOf(_: T.Type) { 60 | let nib = UINib(nibName: T.nibName, bundle: nil) 61 | register(nib, forCellWithReuseIdentifier: T.reuseIdentifier) 62 | } 63 | 64 | func dequeueReusableCell(for indexPath:IndexPath) -> T { 65 | guard let cell = self.dequeueReusableCell(withReuseIdentifier: T.reuseIdentifier, for: indexPath) as? T else { 66 | fatalError("Could not dequeue cell with identifier: \(T.reuseIdentifier)") 67 | } 68 | 69 | return cell 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /ColorKit-Swift/Helper/PersistentContainer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PersistentContainer.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2019/10/16. 6 | // Copyright © 2019 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import CoreData 11 | 12 | class PersistentContainer: NSPersistentContainer{ 13 | override class func defaultDirectoryURL() -> URL{ 14 | return FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.cdx.ColourKitGroup")! 15 | } 16 | 17 | override init(name: String, managedObjectModel model: NSManagedObjectModel) { 18 | super.init(name: name, managedObjectModel: model) 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /ColorKit-Swift/Helper/RegexHelper.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RegexHelper.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/9/17. 6 | // Copyright © 2018 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct RegexHelper{ 12 | let regex:NSRegularExpression 13 | 14 | init(_ pattern: String) throws { 15 | try regex = NSRegularExpression(pattern: pattern, options: .caseInsensitive) 16 | } 17 | 18 | func match(_ input: String) -> Bool{ 19 | let matches = regex.matches(in: input, options: [], range: NSMakeRange(0, input.utf16.count)) 20 | return matches.count > 0 21 | } 22 | } 23 | 24 | precedencegroup MatchPrecedence{ 25 | associativity: none 26 | higherThan:DefaultPrecedence 27 | } 28 | 29 | infix operator =~: MatchPrecedence 30 | 31 | func =~(lhs: String, rhs: String) -> Bool{ 32 | do{ 33 | return try RegexHelper(rhs).match(lhs) 34 | }catch _{ 35 | return false 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /ColorKit-Swift/Helper/SafeDispatch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SafeDispatch.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2019/7/30. 6 | // Copyright © 2019 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | final public class SafeDispatch { 12 | 13 | private let mainQueueKey = DispatchSpecificKey() 14 | private let mainQueueValue = Int(1) 15 | 16 | private static let sharedSafeDispatch = SafeDispatch() 17 | 18 | private init() { 19 | DispatchQueue.main.setSpecific(key: mainQueueKey, value: mainQueueValue) 20 | } 21 | 22 | public class func async(onQueue queue: DispatchQueue = DispatchQueue.main, forWork block: @escaping () -> Void) { 23 | if queue === DispatchQueue.main { 24 | if DispatchQueue.getSpecific(key: sharedSafeDispatch.mainQueueKey) == sharedSafeDispatch.mainQueueValue { 25 | block() 26 | } else { 27 | DispatchQueue.main.async { 28 | block() 29 | } 30 | } 31 | } else { 32 | queue.async { 33 | block() 34 | } 35 | } 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /ColorKit-Swift/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | zh_CN 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(MARKETING_VERSION) 19 | CFBundleURLTypes 20 | 21 | 22 | CFBundleTypeRole 23 | Editor 24 | CFBundleURLSchemes 25 | 26 | ColourKit 27 | 28 | 29 | 30 | CFBundleVersion 31 | 12 32 | LSApplicationQueriesSchemes 33 | 34 | sinaweibohd 35 | sinaweibo 36 | sinaweibosso 37 | weibosdk 38 | weibosdk2.5 39 | 40 | LSRequiresIPhoneOS 41 | 42 | NSAppTransportSecurity 43 | 44 | NSAllowsArbitraryLoads 45 | 46 | 47 | NSCameraUsageDescription 48 | 使用相机,您将可以从拍摄的照片中拾取颜色 49 | NSPhotoLibraryAddUsageDescription 50 | 将图片保存到相册中,可以将图片当作壁纸使用 51 | NSPhotoLibraryUsageDescription 52 | 使用相册,您将可以从相册的照片中拾取颜色使用 53 | UIAppFonts 54 | 55 | FandolSong-Bold.otf 56 | 57 | UILaunchStoryboardName 58 | LaunchScreen 59 | UIMainStoryboardFile 60 | Main 61 | UIRequiredDeviceCapabilities 62 | 63 | armv7 64 | 65 | UIRequiresFullScreen 66 | 67 | UIStatusBarHidden 68 | 69 | UISupportedInterfaceOrientations 70 | 71 | UIInterfaceOrientationPortrait 72 | 73 | UISupportedInterfaceOrientations~ipad 74 | 75 | UIInterfaceOrientationPortrait 76 | UIInterfaceOrientationPortraitUpsideDown 77 | UIInterfaceOrientationLandscapeLeft 78 | UIInterfaceOrientationLandscapeRight 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /ColorKit-Swift/Protocol/NibLoadable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NibLoadable.swift 3 | // XiaoDi 4 | // 5 | // Created by Dixi-Chen on 16/9/7. 6 | // Copyright © 2016年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | protocol NibLoadable { 12 | 13 | static var nibName: String { get } 14 | } 15 | 16 | extension UITableViewCell: NibLoadable { 17 | 18 | static var nibName: String { 19 | return String(describing: self) 20 | } 21 | } 22 | 23 | extension UICollectionReusableView: NibLoadable { 24 | 25 | static var nibName: String { 26 | return String(describing: self) 27 | } 28 | } 29 | 30 | 31 | -------------------------------------------------------------------------------- /ColorKit-Swift/Protocol/Reusable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Reusable.swift 3 | // XiaoDi 4 | // 5 | // Created by Dixi-Chen on 16/9/7. 6 | // Copyright © 2016年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | protocol Reusable:class{ 13 | 14 | static var reuseIdentifier:String{get} 15 | } 16 | 17 | extension UITableViewCell:Reusable{ 18 | static var reuseIdentifier:String{ 19 | return String(describing: self) 20 | } 21 | } 22 | 23 | extension UITableViewHeaderFooterView: Reusable { 24 | 25 | static var reuseIdentifier: String { 26 | return String(describing: self) 27 | } 28 | } 29 | 30 | 31 | 32 | extension UICollectionReusableView: Reusable { 33 | 34 | static var reuseIdentifier: String { 35 | return String(describing: self) 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /ColorKit-Swift/Protocol/SystemCloseTransition.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SystemCloseTransition.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/8/20. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class SystemCloseTransition: NSObject, UIViewControllerAnimatedTransitioning { 12 | 13 | func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval { 14 | return 0.25 15 | } 16 | 17 | func animateTransition(using transitionContext: UIViewControllerContextTransitioning) { 18 | let fromvc = transitionContext.viewController(forKey: UITransitionContextViewControllerKey.from) 19 | let tovc = transitionContext.viewController(forKey: UITransitionContextViewControllerKey.to) 20 | 21 | let containerView = transitionContext.containerView 22 | containerView.insertSubview((tovc?.view)!, at: 0) 23 | 24 | UIView.animate(withDuration: transitionDuration(using: transitionContext), animations: { 25 | fromvc?.view.transform = CGAffineTransform(translationX: 0, y: screenHeight) 26 | }) { (finished) in 27 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled) 28 | } 29 | 30 | } 31 | 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /ColorKit-Swift/Resource/FandolSong-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Resource/FandolSong-Bold.otf -------------------------------------------------------------------------------- /ColorKit-Swift/Resource/wheels_of_time.caf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/ColorKit-Swift/Resource/wheels_of_time.caf -------------------------------------------------------------------------------- /ColorKit-Swift/SectionControllers/CreateSectionHosizontalSectionController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CreateSectionHosizontalSectionController.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/11/1. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import IGListKit 11 | protocol RemoveSectionControllerDelegate: class { 12 | func removeSectionControllerWantsRemoved(_ sectionController: CreateSectionHosizontalSectionController) 13 | } 14 | 15 | final class CreateSectionHosizontalSectionController: ListSectionController,RemoveCellDelegate { 16 | private var helper:AppendColorHelper? 17 | private var color:MyColor? 18 | weak var delegate: RemoveSectionControllerDelegate? 19 | 20 | override init() { 21 | super.init() 22 | self.inset = UIEdgeInsets(top: 0, left: 9, bottom: 0, right: 0) 23 | minimumLineSpacing = 18 24 | 25 | } 26 | 27 | // override func numberOfItems() -> Int { 28 | // return helper?.colors.count ?? 0 29 | // } 30 | 31 | 32 | override func didUpdate(to object: Any) { 33 | //helper = object as? AppendColorHelper 34 | color = object as? MyColor 35 | } 36 | 37 | override func sizeForItem(at index: Int) -> CGSize { 38 | let height = (collectionContext?.containerSize.height ?? 180) - collectionViewMinimumLineSpacing 39 | let width = height / screenRatio 40 | return CGSize(width: width, height: height) 41 | } 42 | 43 | override func cellForItem(at index: Int) -> UICollectionViewCell { 44 | let cell = collectionContext!.dequeueReusableCell(withNibName: "BatchCreateColorCollectionCell", bundle: nil, for: self, at: index) as! BatchCreateColorCollectionCell 45 | cell.delegate = self 46 | if let color = color{ 47 | cell.setColor(color) 48 | } 49 | return cell 50 | } 51 | 52 | func removeCellDidTapButton(_ cell: BatchCreateColorCollectionCell) { 53 | delegate?.removeSectionControllerWantsRemoved(self) 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /ColorKit-Swift/SectionControllers/FeatureHorizontalScrollSectionController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HorizontalScrollSectionController.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/10/30. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import IGListKit 11 | 12 | 13 | 14 | class FeatureHorizontalScrollSectionController: ListSectionController { 15 | 16 | private var project:FeatureProject? 17 | override init() { 18 | super.init() 19 | self.inset = UIEdgeInsets(top: 0, left: 18, bottom: 0, right: 18) 20 | minimumLineSpacing = 18 21 | 22 | } 23 | 24 | override func numberOfItems() -> Int { 25 | return project?.colors.count ?? 0 26 | } 27 | 28 | override func didUpdate(to object: Any) { 29 | project = object as? FeatureProject 30 | } 31 | 32 | override func sizeForItem(at index: Int) -> CGSize { 33 | let height = (collectionContext?.containerSize.height ?? 180) - collectionViewMinimumLineSpacing*2 34 | let width = height / screenRatio 35 | return CGSize(width: width, height: height) 36 | } 37 | 38 | override func cellForItem(at index: Int) -> UICollectionViewCell { 39 | let cell = collectionContext!.dequeueReusableCell(withNibName: "FeatureColorCardCollectionViewCell", bundle: nil, for: self, at: index) as! FeatureColorCardCollectionViewCell 40 | if let color = project?.colors[index]{ 41 | cell.setColor(color) 42 | } 43 | return cell 44 | } 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /ColorKit-Swift/Sources/ColorOfPoint/UIView+ColorOfPoint.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+ColorOfPoint.h 3 | // ColorKit 4 | // 5 | // Created by Dixi-Chen on 2018/9/26. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIView (ColorOfPoint) 12 | 13 | - (void ) colorOfPoint:(CGPoint)point data:(unsigned char * )data; 14 | - (void ) renderColorToData:(unsigned char*) data width:(int) width height:(int) height; 15 | @end 16 | -------------------------------------------------------------------------------- /ColorKit-Swift/Sources/ColorOfPoint/UIView+ColorOfPoint.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+ColorOfPoint.m 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/9/26. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | 10 | #import "UIView+ColorOfPoint.h" 11 | #import 12 | 13 | @implementation UIView (ColorOfPoint) 14 | 15 | - (void) colorOfPoint:(CGPoint)point data:(unsigned char * )data 16 | { 17 | unsigned char pixel[4] = {0}; 18 | 19 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); 20 | 21 | CGContextRef context = CGBitmapContextCreate(data, 1, 1, 8, 4, colorSpace, kCGBitmapAlphaInfoMask & kCGImageAlphaPremultipliedLast); 22 | 23 | CGContextTranslateCTM(context, -point.x, -point.y); 24 | 25 | [self.layer renderInContext:context]; 26 | 27 | CGContextRelease(context); 28 | CGColorSpaceRelease(colorSpace); 29 | 30 | //NSLog(@"pixel: %d %d %d %d", pixel[0], pixel[1], pixel[2], pixel[3]); 31 | 32 | //UIColor *color = [UIColor colorWithRed:pixel[0]/255.0 green:pixel[1]/255.0 blue:pixel[2]/255.0 alpha:pixel[3]/255.0]; 33 | 34 | //return pixel; 35 | } 36 | - (void ) renderColorToData:(unsigned char*) data width:(int) width height:(int) height 37 | { 38 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); 39 | 40 | CGContextRef context = CGBitmapContextCreate(data,width, height, 8, 4, colorSpace, kCGBitmapAlphaInfoMask & kCGImageAlphaPremultipliedLast); 41 | 42 | //CGContextTranslateCTM(context, -point.x, -point.y); 43 | 44 | [self.layer renderInContext:context]; 45 | 46 | CGContextRelease(context); 47 | CGColorSpaceRelease(colorSpace); 48 | } 49 | @end 50 | -------------------------------------------------------------------------------- /ColorKit-Swift/Sources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ColorKit-Swift/Sources/LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.h: -------------------------------------------------------------------------------- 1 | // 2 | // LXReorderableCollectionViewFlowLayout.h 3 | // 4 | // Created by Stan Chang Khin Boon on 1/10/12. 5 | // Copyright (c) 2012 d--buzz. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface LXReorderableCollectionViewFlowLayout : UICollectionViewFlowLayout 11 | 12 | @property (assign, nonatomic) CGFloat scrollingSpeed; 13 | @property (assign, nonatomic) UIEdgeInsets scrollingTriggerEdgeInsets; 14 | @property (strong, nonatomic, readonly) UILongPressGestureRecognizer *longPressGestureRecognizer; 15 | @property (strong, nonatomic, readonly) UIPanGestureRecognizer *panGestureRecognizer; 16 | 17 | - (void)setUpGestureRecognizersOnCollectionView __attribute__((deprecated("Calls to setUpGestureRecognizersOnCollectionView method are not longer needed as setup are done automatically through KVO."))); 18 | 19 | @end 20 | 21 | @protocol LXReorderableCollectionViewDataSource 22 | 23 | @optional 24 | 25 | - (void)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)fromIndexPath willMoveToIndexPath:(NSIndexPath *)toIndexPath; 26 | - (void)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)fromIndexPath didMoveToIndexPath:(NSIndexPath *)toIndexPath; 27 | 28 | - (BOOL)collectionView:(UICollectionView *)collectionView canMoveItemAtIndexPath:(NSIndexPath *)indexPath; 29 | - (BOOL)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)fromIndexPath canMoveToIndexPath:(NSIndexPath *)toIndexPath; 30 | 31 | @end 32 | 33 | @protocol LXReorderableCollectionViewDelegateFlowLayout 34 | @optional 35 | 36 | - (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout willBeginDraggingItemAtIndexPath:(NSIndexPath *)indexPath; 37 | - (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout didBeginDraggingItemAtIndexPath:(NSIndexPath *)indexPath; 38 | - (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout willEndDraggingItemAtIndexPath:(NSIndexPath *)indexPath; 39 | - (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout didEndDraggingItemAtIndexPath:(NSIndexPath *)indexPath; 40 | 41 | @end -------------------------------------------------------------------------------- /ColorKit-Swift/Sources/Slider.h: -------------------------------------------------------------------------------- 1 | // 2 | // Slider.h 3 | // Slider 4 | // 5 | // Created by Dmitry Nesterenko on 19/10/2017. 6 | // Copyright Ramotion Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Slider. 12 | FOUNDATION_EXPORT double SliderVersionNumber; 13 | 14 | //! Project version string for Slider. 15 | FOUNDATION_EXPORT const unsigned char SliderVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /ColorKit-Swift/Test/Test1ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Test1ViewController.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/7/30. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class Test1ViewController: UIViewController { 12 | 13 | 14 | @IBOutlet weak var badgeBorder: BadgeBoardView! 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | 19 | // Do any additional setup after loading the view. 20 | } 21 | 22 | override func didReceiveMemoryWarning() { 23 | super.didReceiveMemoryWarning() 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | override func touchesBegan(_ touches: Set, with event: UIEvent?) { 28 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) 29 | } 30 | /* 31 | // MARK: - Navigation 32 | 33 | // In a storyboard-based application, you will often want to do a little preparation before navigation 34 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 35 | // Get the new view controller using segue.destinationViewController. 36 | // Pass the selected object to the new view controller. 37 | } 38 | */ 39 | 40 | } 41 | -------------------------------------------------------------------------------- /ColorKit-Swift/VerticalCardSwiper/CardDelegate.swift: -------------------------------------------------------------------------------- 1 | // MIT License 2 | // 3 | // Copyright (c) 2017 Joni Van Roost 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in all 13 | // copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | // SOFTWARE. 22 | 23 | import Foundation 24 | 25 | /// This delegate is used for delegating `CardCell` actions. 26 | internal protocol CardDelegate: class { 27 | 28 | /** 29 | Called right before a CardCell is swiped away. 30 | - parameter cell: The CardCell that is being swiped away. 31 | - parameter swipeDirection: The direction the card is swiped in. This can be Left, Right or None. 32 | */ 33 | func willSwipeAway(cell: CardCell, swipeDirection: CellSwipeDirection) 34 | 35 | /** 36 | Called when a CardCell is swiped away. 37 | - parameter cell: The CardCell that is being swiped away. 38 | - parameter swipeDirection: The direction the card is swiped in. This can be Left, Right or None. 39 | */ 40 | func didSwipeAway(cell: CardCell, swipeDirection: CellSwipeDirection) 41 | } 42 | -------------------------------------------------------------------------------- /ColorKit-Swift/VerticalCardSwiper/CellSwipeDirection.swift: -------------------------------------------------------------------------------- 1 | // MIT License 2 | // 3 | // Copyright (c) 2017 Joni Van Roost 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in all 13 | // copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | // SOFTWARE. 22 | 23 | import Foundation 24 | 25 | /// Indicates the direction of a cardcell swipe. 26 | @objc public enum CellSwipeDirection: Int { 27 | case Left 28 | case Right 29 | case None 30 | } 31 | -------------------------------------------------------------------------------- /ColorKit-Swift/VerticalCardSwiper/Extensions.swift: -------------------------------------------------------------------------------- 1 | // MIT License 2 | // 3 | // Copyright (c) 2017 Joni Van Roost 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in all 13 | // copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | // SOFTWARE. 22 | 23 | import UIKit 24 | 25 | internal extension UIPanGestureRecognizer { 26 | 27 | /** 28 | This calculated var stores the direction of the gesture received by the `UIPanGestureRecognizer`. 29 | */ 30 | internal var direction: PanDirection? { 31 | let velocity = self.velocity(in: view) 32 | let vertical = fabs(velocity.y) > fabs(velocity.x) 33 | switch (vertical, velocity.x, velocity.y) { 34 | case (true, _, let y) where y < 0: return .Up 35 | case (true, _, let y) where y > 0: return .Down 36 | case (false, let x, _) where x > 0: return .Right 37 | case (false, let x, _) where x < 0: return .Left 38 | default: return PanDirection.None 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /ColorKit-Swift/VerticalCardSwiper/PanDirection.swift: -------------------------------------------------------------------------------- 1 | // MIT License 2 | // 3 | // Copyright (c) 2017 Joni Van Roost 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in all 13 | // copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | // SOFTWARE. 22 | 23 | import Foundation 24 | 25 | /// The direction of the `UIPanGesture`. 26 | public enum PanDirection: Int { 27 | case Up 28 | case Down 29 | case Left 30 | case Right 31 | case None 32 | 33 | /// Returns true is the PanDirection is horizontal. 34 | public var isX: Bool { return self == .Left || self == .Right } 35 | /// Returns true if the PanDirection is vertical. 36 | public var isY: Bool { return self == .Up || self == .Down } 37 | } 38 | -------------------------------------------------------------------------------- /ColorKit-Swift/VerticalCardSwiper/VerticalCardSwiper.h: -------------------------------------------------------------------------------- 1 | // MIT License 2 | // 3 | // Copyright (c) 2017 Joni Van Roost 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in all 13 | // copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | // SOFTWARE. 22 | 23 | #import 24 | 25 | //! Project version number for VerticalCardSwiper. 26 | FOUNDATION_EXPORT double VerticalCardSwiperVersionNumber; 27 | 28 | //! Project version string for VerticalCardSwiper. 29 | FOUNDATION_EXPORT const unsigned char VerticalCardSwiperVersionString[]; 30 | 31 | // In this header, you should import all the public headers of your framework using statements like #import 32 | 33 | 34 | -------------------------------------------------------------------------------- /ColorKit-Swift/VerticalCardSwiper/VerticalCardSwiperDatasource.swift: -------------------------------------------------------------------------------- 1 | // MIT License 2 | // 3 | // Copyright (c) 2017 Joni Van Roost 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in all 13 | // copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | // SOFTWARE. 22 | 23 | import Foundation 24 | 25 | /// This datasource is used for providing data to the `VerticalCardSwiper`. 26 | public protocol VerticalCardSwiperDatasource: class { 27 | 28 | /** 29 | Sets the number of cards for the `UICollectionView` inside the VerticalCardSwiperController. 30 | - parameter verticalCardSwiperView: The `VerticalCardSwiperView` where we set the amount of cards. 31 | - returns: an `Int` with the amount of cards we want to show. 32 | */ 33 | func numberOfCards(verticalCardSwiperView: VerticalCardSwiperView) -> Int 34 | 35 | /** 36 | Asks your data source object for the cell that corresponds to the specified item in the `VerticalCardSwiper`. 37 | Your implementation of this method is responsible for creating, configuring, and returning the appropriate `CardCell` for the given item. 38 | - parameter verticalCardSwiperView: The `VerticalCardSwiperView` that will display the `CardCell`. 39 | - parameter index: The that the `CardCell` should be shown at. 40 | - returns: A CardCell object. The default value is an empty CardCell object. 41 | */ 42 | func cardForItemAt(verticalCardSwiperView: VerticalCardSwiperView, cardForItemAt index: Int) -> CardCell 43 | } 44 | -------------------------------------------------------------------------------- /ColorKit-Swift/View/Label/BottomLineLabel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BottomLineLabel.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/12/3. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class BottomLineLabel: UILabel { 12 | 13 | public var showUnderline = true 14 | // Only override draw() if you perform custom drawing. 15 | // An empty implementation adversely affects performance during animation. 16 | override func draw(_ rect: CGRect) { 17 | // Drawing code 18 | 19 | if showUnderline { 20 | let context = UIGraphicsGetCurrentContext() 21 | let descender = font.descender 22 | context?.setStrokeColor(textColor.cgColor) 23 | let l = CGPoint(x: 0, y: self.frame.size.height+descender+1) 24 | let r = CGPoint(x: frame.width, y: self.frame.size.height+descender+1) 25 | context?.move(to: l) 26 | context?.addLine(to: r) 27 | context?.strokePath() 28 | context?.closePath() 29 | } 30 | super.draw(rect) 31 | } 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /ColorKit-Swift/View/PickColor/CardPreview.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CardPreview.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/8/10. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CardPreview: UIView { 12 | 13 | @IBOutlet weak var titleLabel: UILabel! 14 | 15 | @IBOutlet weak var hexLabel: UILabel! 16 | 17 | /* 18 | // Only override draw() if you perform custom drawing. 19 | // An empty implementation adversely affects performance during animation. 20 | override func draw(_ rect: CGRect) { 21 | // Drawing code 22 | } 23 | */ 24 | override func awakeFromNib() { 25 | super.awakeFromNib() 26 | backgroundColor = UIColor.black 27 | let clearTextColor = getClearTextColor(backgroundColor: UIColor.black) 28 | titleLabel.textColor = clearTextColor 29 | hexLabel.textColor = clearTextColor 30 | } 31 | 32 | public func setColor(red red32:Int32,green green32:Int32 ,blue blue32:Int32){ 33 | 34 | let r :CGFloat = CGFloat(red32)/255.0 35 | 36 | let g :CGFloat = CGFloat(green32)/255.0 37 | let b :CGFloat = CGFloat(blue32)/255.0 38 | 39 | let average = (r+g+b) 40 | hexLabel.textColor = average>labelColorThreshold ? UIColor.black : UIColor.white 41 | hexLabel.text = CommonUtil.hexColorString(red: red32, green: green32, blue: blue32) 42 | backgroundColor = UIColor(red: r, green: g, blue: b, alpha: 1.0) 43 | 44 | titleLabel.textColor = average>labelColorThreshold ? UIColor.black : UIColor.white 45 | 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /ColorKit-Swift/View/PickColor/ColorPinView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ColorPinView.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/8/14. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ColorPinView: UIImageView { 12 | 13 | /* 14 | // Only override draw() if you perform custom drawing. 15 | // An empty implementation adversely affects performance during animation. 16 | override func draw(_ rect: CGRect) { 17 | // Drawing code 18 | } 19 | */ 20 | override init(frame: CGRect) { 21 | super.init(frame: frame) 22 | setupPanGesture() 23 | } 24 | 25 | override init(image: UIImage?) { 26 | super.init(image:image) 27 | setupPanGesture() 28 | } 29 | 30 | required init?(coder aDecoder: NSCoder) { 31 | fatalError("init(coder:) has not been implemented") 32 | } 33 | 34 | func setupPanGesture(){ 35 | print("setup") 36 | let panGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(panGesture)) 37 | panGestureRecognizer.maximumNumberOfTouches = 1 38 | addGestureRecognizer(panGestureRecognizer) 39 | isUserInteractionEnabled = true 40 | } 41 | 42 | private var locationOffset:CGPoint = CGPoint.zero 43 | 44 | @objc func panGesture(_ panGesture: UIPanGestureRecognizer){ 45 | 46 | if let superview = superview{ 47 | 48 | let position = panGesture.location(in: superview) 49 | let state = panGesture.state 50 | switch state { 51 | case .began: 52 | locationOffset = CGPoint(x: position.x - center.x, y: position.y-center.y) 53 | case .changed: 54 | center = CGPoint(x: position.x-locationOffset.x, y: position.y-locationOffset.y) 55 | default: 56 | 57 | locationOffset = CGPoint.zero 58 | } 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /ColorKit-Swift/View/PickColor/ProjectBar.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ProjectBar.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/9/16. 6 | // Copyright © 2018 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ProjectBar: UIView { 12 | 13 | @IBOutlet weak var badgeImageView: UIImageView! 14 | 15 | @IBOutlet weak var nameLabel: UILabel! 16 | 17 | /* 18 | // Only override draw() if you perform custom drawing. 19 | // An empty implementation adversely affects performance during animation. 20 | override func draw(_ rect: CGRect) { 21 | // Drawing code 22 | } 23 | */ 24 | override func awakeFromNib() { 25 | super.awakeFromNib() 26 | backgroundColor = UIColor.white 27 | } 28 | 29 | func setProject(_ project:Project){ 30 | badgeImageView.image = UIImage(named: project.badgeName ?? "badge_game") 31 | nameLabel.text = project.name ?? "" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /ColorKit-Swift/View/PickColor/en.lproj/CardPreview.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "点击此处编辑标题"; ObjectID = "Orq-73-Pgf"; */ 3 | "Orq-73-Pgf.text" = "Tap To Edit Title"; 4 | 5 | /* Class = "UILabel"; text = "#000000"; ObjectID = "uey-Hg-U9w"; */ 6 | "uey-Hg-U9w.text" = "#000000"; 7 | -------------------------------------------------------------------------------- /ColorKit-Swift/View/PickColor/zh-Hans.lproj/CardPreview.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "点击此处编辑标题"; ObjectID = "Orq-73-Pgf"; */ 3 | "Orq-73-Pgf.text" = "点击此处编辑标题"; 4 | 5 | /* Class = "UILabel"; text = "#000000"; ObjectID = "uey-Hg-U9w"; */ 6 | "uey-Hg-U9w.text" = "#000000"; 7 | -------------------------------------------------------------------------------- /ColorKit-Swift/View/PickColor/zh-Hant.lproj/CardPreview.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "点击此处编辑标题"; ObjectID = "Orq-73-Pgf"; */ 3 | "Orq-73-Pgf.text" = "點擊此處編輯標題"; 4 | 5 | /* Class = "UILabel"; text = "#000000"; ObjectID = "uey-Hg-U9w"; */ 6 | "uey-Hg-U9w.text" = "#000000"; 7 | -------------------------------------------------------------------------------- /ColorKit-Swift/View/Setting/HexColorTextFieldAndButtonView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HexColorTextFieldAndButtonView.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2018/9/17. 6 | // Copyright © 2018 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class HexColorTextFieldAndButtonView: TextFieldAndButtonView { 12 | 13 | /* 14 | // Only override draw() if you perform custom drawing. 15 | // An empty implementation adversely affects performance during animation. 16 | override func draw(_ rect: CGRect) { 17 | // Drawing code 18 | } 19 | */ 20 | 21 | override func isLegalContent() -> Bool { 22 | if let string = inputTextField.text, string =~ "^#[0-9a-fA-F]{6}$"{ 23 | return true 24 | } 25 | return false 26 | } 27 | 28 | override func setupUI() { 29 | super.setupUI() 30 | inputTextField.keyboardType = .asciiCapable 31 | } 32 | 33 | override func didClearInpuContent() { 34 | inputTextField.text = "#" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /ColorKit-Swift/View/Setting/badge_list.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | badge 6 | 7 | badge_android 8 | badge_apple 9 | badge_game 10 | badge_camera 11 | badge_music 12 | badge_palette 13 | badge_ball 14 | badge_pet 15 | badge_plane 16 | badge_star 17 | badge_steve 18 | badge_tech 19 | badge_wine 20 | badge_bubble 21 | badge_heart 22 | badge_weather 23 | badge_tag 24 | badge_building 25 | badge_local 26 | badge_plane_up 27 | badge_meditation 28 | badge_bike 29 | badge_science 30 | badge_tieba 31 | badge_zhihu 32 | badge_taobao 33 | badge_alipay 34 | badge_weixin 35 | badge_pinterest 36 | badge_weibo 37 | badge_renren 38 | badge_twitch 39 | badge_twitter 40 | badge_dribbble 41 | badge_facebook 42 | badge_whatsapp 43 | badge_instagram 44 | badge_linkedin 45 | badge_snapchat 46 | badge_tumblr 47 | badge_slack 48 | badge_reddit 49 | badge_skype 50 | badge_dropbox 51 | badge_github 52 | badge_python 53 | badge_html5 54 | badge_playstation 55 | badge_xbox 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /ColorKit-Swift/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* 2 | InfoPlist.strings 3 | ColorKit 4 | 5 | Created by Dixi-Chen on 2018/9/15. 6 | Copyright © 2018 Dixi-Chen. All rights reserved. 7 | */ 8 | "CFBundleDisplayName" = "ColourNote"; 9 | "NSCameraUsageDescription" = "With the camera, you will be able to pick colors from the photos you take"; 10 | "NSPhotoLibraryAddUsageDescription" = "Save the image to an album and use it as a wallpaper"; 11 | "NSPhotoLibraryUsageDescription" = "You'll be able to pick up color from photos in your album"; 12 | -------------------------------------------------------------------------------- /ColorKit-Swift/en.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "配色笔记"; ObjectID = "t5o-UE-Hbj"; */ 3 | "t5o-UE-Hbj.text" = "ColourNote"; 4 | -------------------------------------------------------------------------------- /ColorKit-Swift/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | ColorKit 4 | 5 | Created by Dixi-Chen on 2018/9/15. 6 | Copyright © 2018 Dixi-Chen. All rights reserved. 7 | */ 8 | "Switch View" = "Switch View"; 9 | "Project Setting" = "Setting"; 10 | "cancel" = "Cancel"; 11 | "delete" = "Delete"; 12 | "save" = "Save"; 13 | "Are you sure you want to delete this project?" = "Are you sure you want to delete this project?"; 14 | "Are you sure you want to delete this color?" = "Are you sure you want to delete this color?"; 15 | "Choose how to get a color" = "Choose how to get a color"; 16 | "From Image" = "From Image"; 17 | "Photo Library" = "Photo Library"; 18 | "Camera" = "Camera"; 19 | "ok" = "ok"; 20 | "add project" = "Add Project"; 21 | "input project name" = "input project name"; 22 | "project name" = "Project Name"; 23 | "ColorNote" = "ColourNote"; 24 | "Chongqing Metro" = "Chongqing Metro"; 25 | "Line1" = "Line 1"; 26 | "Line2" = "Line 2"; 27 | "Line3" = "Line 3"; 28 | "Line4" = "Line 4"; 29 | "Line5" = "Line 5"; 30 | "Line6" = "Line 6"; 31 | "Line7" = "Line 7"; 32 | "Line8" = "Line 8"; 33 | "Line9" = "Line 9"; 34 | "Line10" = "Line 10"; 35 | "LoopLine" = "Loop Line"; 36 | "Favorites" = "Favorites"; 37 | "Mine" = "Mine"; 38 | "AboutColourNote" = "About「ColourNote」"; 39 | "Featured" = "Featured"; 40 | "Create a project first" = "Create a project first"; 41 | "Download Success" = "Download Success"; 42 | "OK" = "OK"; 43 | "Copy Project Code" = "Copy Project Code"; 44 | "Code Detected" = "Code Detectd"; 45 | "Do you want to import the data?" = "Do you want to import the data?"; 46 | -------------------------------------------------------------------------------- /ColorKit-Swift/en.lproj/Main.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UINavigationItem"; title = "配色笔记"; ObjectID = "eHq-Px-Mnj"; */ 3 | "eHq-Px-Mnj.title" = "ColourNote"; 4 | -------------------------------------------------------------------------------- /ColorKit-Swift/fluid-slider/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ColorKit-Swift/ramotion-slider/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ColorKit-Swift/zh-Hans.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* 2 | InfoPlist.strings 3 | ColorKit 4 | 5 | Created by Dixi-Chen on 2018/9/15. 6 | Copyright © 2018 Dixi-Chen. All rights reserved. 7 | */ 8 | "CFBundleDisplayName" = "配色笔记"; 9 | "NSCameraUsageDescription" = "使用相机,您将可以从拍摄的照片中拾取颜色"; 10 | "NSPhotoLibraryAddUsageDescription" = "将图片保存到相册中,可以将图片当作壁纸使用"; 11 | "NSPhotoLibraryUsageDescription" = "使用相册,您将可以从相册的照片中拾取颜色使用"; 12 | -------------------------------------------------------------------------------- /ColorKit-Swift/zh-Hans.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "配色笔记"; ObjectID = "t5o-UE-Hbj"; */ 3 | "t5o-UE-Hbj.text" = "配色笔记"; 4 | -------------------------------------------------------------------------------- /ColorKit-Swift/zh-Hans.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | ColorKit 4 | 5 | Created by Dixi-Chen on 2018/9/15. 6 | Copyright © 2018 Dixi-Chen. All rights reserved. 7 | */ 8 | "Switch View" = "切换视图"; 9 | "Project Setting" = "项目设置"; 10 | "cancel" = "取消"; 11 | "delete" = "删除"; 12 | "save" = "保存"; 13 | "Are you sure you want to delete this project?" = "确定要删除此项目吗"; 14 | "Are you sure you want to delete this color?" = "确定要删除此色卡吗"; 15 | "Choose how to get a color" = "选择获取色卡的方式"; 16 | "From Image" = "从图片中获取"; 17 | "Photo Library" = "从相册选择"; 18 | "Camera" = "拍照"; 19 | "ok" = "好的"; 20 | "add project" = "添加项目"; 21 | "input project name" = "输入项目名称"; 22 | "project name" = "项目名称"; 23 | "ColorNote" = "配色笔记"; 24 | "Line1" = "一号线"; 25 | "Line2" = "二号线"; 26 | "Line3" = "三号线"; 27 | "Line4" = "四号线"; 28 | "Line5" = "五号线"; 29 | "Line6" = "六号线"; 30 | "Line7" = "七号线"; 31 | "Line8" = "八号线"; 32 | "Line9" = "九号线"; 33 | "Line10" = "十号线"; 34 | "LoopLine" = "环线"; 35 | "Favorites" = "收藏"; 36 | "Mine" = "我的"; 37 | "AboutColourNote" = "关于「配色笔记」"; 38 | "Featured" = "精选"; 39 | "Create a project first" = "请先创建一个项目"; 40 | "Download Success" = "下载成功"; 41 | "OK" = "确认"; 42 | "Copy Project Code" = "复制项目口令"; 43 | "Code Detected" = "识别到专用口令"; 44 | "Do you want to import the data?" = "你想导入口令中的数据吗?"; 45 | -------------------------------------------------------------------------------- /ColorKit-Swift/zh-Hans.lproj/Main.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UINavigationItem"; title = "配色笔记"; ObjectID = "eHq-Px-Mnj"; */ 3 | "eHq-Px-Mnj.title" = "配色笔记"; 4 | -------------------------------------------------------------------------------- /ColorKit-Swift/zh-Hant.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* 2 | InfoPlist.strings 3 | ColorKit 4 | 5 | Created by Dixi-Chen on 2018/9/15. 6 | Copyright © 2018 Dixi-Chen. All rights reserved. 7 | */ 8 | "CFBundleDisplayName" = "配色筆記"; 9 | "NSCameraUsageDescription" = "使用相機,您將可以從拍攝的照片中拾取顏色"; 10 | "NSPhotoLibraryAddUsageDescription" = "將圖片保存到相冊中,可以將圖片當作壁紙使用"; 11 | "NSPhotoLibraryUsageDescription" = "使用相冊,您將可以從相冊的照片中拾取顏色使用"; 12 | -------------------------------------------------------------------------------- /ColorKit-Swift/zh-Hant.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "配色笔记"; ObjectID = "t5o-UE-Hbj"; */ 3 | "t5o-UE-Hbj.text" = "配色筆記"; 4 | -------------------------------------------------------------------------------- /ColorKit-Swift/zh-Hant.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | ColorKit 4 | 5 | Created by Dixi-Chen on 2018/9/15. 6 | Copyright © 2018 Dixi-Chen. All rights reserved. 7 | */ 8 | "Switch View" = "切換視圖"; 9 | "Project Setting" = "項目設置"; 10 | "cancel" = "取消"; 11 | "delete" = "刪除"; 12 | "save" = "保存"; 13 | "Are you sure you want to delete this project?" = "確定要刪除此項目嗎"; 14 | "Are you sure you want to delete this color?" = "確定要刪除此色卡嗎"; 15 | "Choose how to get a color" = "選擇獲取色卡的方式"; 16 | "From Image" = "從圖片中獲取"; 17 | "Photo Library" = "從相冊選擇"; 18 | "Camera" = "拍照"; 19 | "ok" = "好的"; 20 | "add project" = "添加項目"; 21 | "input project name" = "輸入項目名稱"; 22 | "project name" = "項目名稱"; 23 | "ColorNote" = "配色筆記"; 24 | "Line1" = "一號線"; 25 | "Line2" = "二號線"; 26 | "Line3" = "三號線"; 27 | "Line4" = "四號線"; 28 | "Line5" = "五號線"; 29 | "Line6" = "六號線"; 30 | "Line7" = "七號線"; 31 | "Line8" = "八號線"; 32 | "Line9" = "九號線"; 33 | "Line10" = "十號線"; 34 | "LoopLine" = "環線"; 35 | "Favorites" = "收藏"; 36 | "Mine" = "我的"; 37 | "AboutColourNote" = "關於「配色筆記」"; 38 | "Featured" = "精選"; 39 | "Create a project first" = "請先創建一個項目"; 40 | "Download Success" = "下載成功"; 41 | "OK" = "確認"; 42 | "Copy Project Code" = "複製項目口令"; 43 | "Code Detected" = "識別到專用口令"; 44 | "Do you want to import the data?" = "你想從口令中導入數據嗎?"; 45 | -------------------------------------------------------------------------------- /ColorKit-Swift/zh-Hant.lproj/Main.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UINavigationItem"; title = "配色笔记"; ObjectID = "eHq-Px-Mnj"; */ 3 | "eHq-Px-Mnj.title" = "配色筆記"; 4 | -------------------------------------------------------------------------------- /ColorKit-SwiftTests/ColorKit_SwiftTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ColorKit_SwiftTests.swift 3 | // ColorKit-SwiftTests 4 | // 5 | // Created by Dixi-Chen on 2018/5/3. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import ColorKit_Swift 11 | 12 | class ColorKit_SwiftTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /ColorKit-SwiftTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ColorKit-Today/ColourKit-Today.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.application-groups 6 | 7 | group.cdx.ColourKitGroup 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ColorKit-Today/Common/Constant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Constant.swift 3 | // ColorKit-Today 4 | // 5 | // Created by Dixi-Chen on 2019/10/9. 6 | // Copyright © 2019 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | struct Font_Light { 12 | static let Size_24=UIFont(name: "PingFangSC-Light",size: 24) 13 | static let Size_20=UIFont(name: "PingFangSC-Light",size: 20) 14 | static let Size_17=UIFont(name: "PingFangSC-Light",size: 17) 15 | static let Size_16=UIFont(name: "PingFangSC-Light",size: 16) 16 | static let Size_18=UIFont(name: "PingFangSC-Light",size: 18) 17 | static let Size_15=UIFont(name: "PingFangSC-Light",size: 15) 18 | static let Size_13=UIFont(name: "PingFangSC-Light",size: 13) 19 | static let Size_12=UIFont(name: "PingFangSC-Light",size: 12) 20 | static let Size_11=UIFont(name: "PingFangSC-Light", size: 11) 21 | } 22 | struct Font_Regular { 23 | static let Size_30=UIFont(name:"PingFangSC-Regular",size: 30) 24 | static let Size_24=UIFont(name:"PingFangSC-Regular",size: 24) 25 | static let Size_17=UIFont(name:"PingFangSC-Regular",size: 17) 26 | static let Size_15=UIFont(name:"PingFangSC-Regular",size: 15) 27 | static let Size_11=UIFont(name:"PingFangSC-Regular",size: 11) 28 | static let Size_12=UIFont(name:"PingFangSC-Regular",size: 12) 29 | } 30 | 31 | 32 | struct Font_Hiragino{ 33 | //static let Size_30=UIFont(name:"HiraMinProN-W6",size: 30) 34 | static let Size_30=UIFont(name:"FandolSong-Bold",size: 30) 35 | } 36 | 37 | struct Font_FandolSong_Bold{ 38 | static let Size_30=UIFont(name:"FandolSong-Bold",size: 30) 39 | } 40 | 41 | -------------------------------------------------------------------------------- /ColorKit-Today/Extension/UIColor+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+Extension.swift 3 | // ColorKit-Today 4 | // 5 | // Created by Dixi-Chen on 2019/10/8. 6 | // Copyright © 2019 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | 10 | 11 | import UIKit 12 | 13 | extension UIColor{ 14 | class func CellSeparatorColor() -> UIColor { 15 | return UIColor.lightGray.withAlphaComponent(0.3) 16 | } 17 | 18 | class func TableViewBackgroundColor() -> UIColor{ 19 | return UIColor(red: 235/255, green: 235/255, blue: 240/255, alpha: 1.00) 20 | } 21 | 22 | class func NavigationBarTintColor() -> UIColor{ 23 | return UIColor(red:81/255, green:82/255,blue:112/255,alpha:1.00) 24 | } 25 | 26 | class func TabBarTintColor() -> UIColor{ 27 | return UIColor(red: 9.0/255.0, green: 10.0/255.0, blue: 2.0/255.0, alpha: 1.0) 28 | } 29 | 30 | class func ColorKitRed() -> UIColor{ 31 | return UIColor(red:192/255, green:10/255,blue:23/255,alpha:1.00) 32 | } 33 | 34 | class func ColorKitGreen() -> UIColor{ 35 | return UIColor(red:45/255, green:176/255,blue:101/255,alpha:1.00) 36 | } 37 | 38 | class func ColorKitBlue() -> UIColor{ 39 | return UIColor(red:125/255, green:190/255,blue:240/255,alpha:1.00) 40 | } 41 | 42 | class func CommonViewBackgroundColor() -> UIColor{ 43 | return UIColor(red: 245/255, green: 245/255, blue: 245/255, alpha: 1.00) 44 | } 45 | 46 | class func rgbColorFromHex(rgb:Int) ->UIColor { 47 | 48 | return UIColor(red: ((CGFloat)((rgb & 0xFF0000) >> 16)) / 255.0, 49 | green: ((CGFloat)((rgb & 0xFF00) >> 8)) / 255.0, 50 | blue: ((CGFloat)(rgb & 0xFF)) / 255.0, 51 | alpha: 1.0) 52 | } 53 | 54 | 55 | } 56 | 57 | -------------------------------------------------------------------------------- /ColorKit-Today/Helper/SafeDispatch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SafeDispatch.swift 3 | // ColorKit-Swift 4 | // 5 | // Created by Dixi-Chen on 2019/7/30. 6 | // Copyright © 2019 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | final public class SafeDispatch { 12 | 13 | private let mainQueueKey = DispatchSpecificKey() 14 | private let mainQueueValue = Int(1) 15 | 16 | private static let sharedSafeDispatch = SafeDispatch() 17 | 18 | private init() { 19 | DispatchQueue.main.setSpecific(key: mainQueueKey, value: mainQueueValue) 20 | } 21 | 22 | public class func async(onQueue queue: DispatchQueue = DispatchQueue.main, forWork block: @escaping () -> Void) { 23 | if queue === DispatchQueue.main { 24 | if DispatchQueue.getSpecific(key: sharedSafeDispatch.mainQueueKey) == sharedSafeDispatch.mainQueueValue { 25 | block() 26 | } else { 27 | DispatchQueue.main.async { 28 | block() 29 | } 30 | } 31 | } else { 32 | queue.async { 33 | block() 34 | } 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /ColorKit-Today/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | $(PRODUCT_NAME) 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSExtension 24 | 25 | NSExtensionPointIdentifier 26 | com.apple.widget-extension 27 | NSExtensionPrincipalClass 28 | $(PRODUCT_NAME).TodayViewController 29 | 30 | UIAppFonts 31 | 32 | FandolSong-Bold.otf 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /ColorKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ColorKit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ColorKit/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ColorKit 4 | // 5 | // Created by Dixi-Chen on 2018/5/3. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /ColorKit/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // ColorKit 4 | // 5 | // Created by Dixi-Chen on 2018/5/3. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 18 | // Insert code here to initialize your application 19 | } 20 | 21 | 22 | - (void)applicationWillTerminate:(NSNotification *)aNotification { 23 | // Insert code here to tear down your application 24 | } 25 | 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ColorKit/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /ColorKit/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ColorKit/ColorKit.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ColorKit/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | Copyright © 2018年 Dixi-Chen. All rights reserved. 27 | NSMainStoryboardFile 28 | Main 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /ColorKit/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // ColorKit 4 | // 5 | // Created by Dixi-Chen on 2018/5/3. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : NSViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /ColorKit/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // ColorKit 4 | // 5 | // Created by Dixi-Chen on 2018/5/3. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @implementation ViewController 12 | 13 | - (void)viewDidLoad { 14 | [super viewDidLoad]; 15 | 16 | // Do any additional setup after loading the view. 17 | } 18 | 19 | 20 | - (void)setRepresentedObject:(id)representedObject { 21 | [super setRepresentedObject:representedObject]; 22 | 23 | // Update the view, if already loaded. 24 | } 25 | 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ColorKit/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ColorKit 4 | // 5 | // Created by Dixi-Chen on 2018/5/3. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /ColorKitTests/ColorKitTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // ColorKitTests.m 3 | // ColorKitTests 4 | // 5 | // Created by Dixi-Chen on 2018/5/3. 6 | // Copyright © 2018年 Dixi-Chen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ColorKitTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation ColorKitTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ColorKitTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![banner] 2 | 3 | # ColorKit 4 | 配色笔记 项目颜色搭配笔记本: [App Store link](https://itunes.apple.com/cn/app/id1422973826) 5 | 6 | ## Snapshot 7 | 8 | | | | | | 9 | | :--: | :------------: | :------------: | :--: | 10 | | ![snapshot1] | ![snapshot2] | ![snapshot3] | ![snapshot4] | 11 | 12 | [snapshot1]:assets/IMG_1818.PNG 13 | [snapshot2]:assets/IMG_1817.PNG 14 | [snapshot3]:assets/IMG_0662.PNG 15 | [snapshot4]:assets/IMG_1821.JPG 16 | [banner]:assets/banner.png 17 | 18 | ## Support Us 19 | 20 | The development covers a lot of complicated work, costing not only money but also time. These are the way to support 21 | 22 | - If you found it valuable, give a star, it means a lot to me. 23 | - Download this App on App Store for free and leave a rating score[[App Store link]](https://itunes.apple.com/cn/app/id1422973826). 24 | - Donate with Alipay through the sponsor button above this repository. 25 | -------------------------------------------------------------------------------- /assets/IMG_0579.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/assets/IMG_0579.PNG -------------------------------------------------------------------------------- /assets/IMG_0662.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/assets/IMG_0662.PNG -------------------------------------------------------------------------------- /assets/IMG_1817.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/assets/IMG_1817.PNG -------------------------------------------------------------------------------- /assets/IMG_1818.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/assets/IMG_1818.PNG -------------------------------------------------------------------------------- /assets/IMG_1819.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/assets/IMG_1819.PNG -------------------------------------------------------------------------------- /assets/IMG_1821.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/assets/IMG_1821.JPG -------------------------------------------------------------------------------- /assets/IMG_1822.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/assets/IMG_1822.PNG -------------------------------------------------------------------------------- /assets/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chen-Dixi/ColorKit/86c04b7baf708f6637df794bf7e80274e0b470df/assets/banner.png --------------------------------------------------------------------------------