├── .gitignore ├── .travis.yml ├── Assets └── Logo.png ├── LICENSE ├── Panda.podspec ├── Panda.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ └── Panda.xcscheme ├── README.md └── Sources ├── Basics ├── Actions.swift ├── Add.swift ├── Font.swift ├── PandaChain.swift ├── SetHelper.swift ├── SourceDelegate.swift └── Transform.swift ├── Extensions ├── CALayerExtensions.swift ├── UIAlertControllerExtensions.swift ├── UICollectionViewExtensions.swift ├── UIGestureRecognizerExtensions.swift ├── UILabelExtensions.swift ├── UIScrollViewExtensions.swift ├── UITableViewExtensions.swift └── UIViewExtensions.swift ├── Info.plist ├── Panda.h └── Properties ├── QuartzCore ├── CAAnimation.swift ├── CAAnimationGroup.swift ├── CABasicAnimation.swift ├── CADisplayLink.swift ├── CAEAGLLayer.swift ├── CAEmitterCell.swift ├── CAEmitterLayer.swift ├── CAGradientLayer.swift ├── CAKeyframeAnimation.swift ├── CALayer.swift ├── CAMediaTiming.swift ├── CAPropertyAnimation.swift ├── CAReplicatorLayer.swift ├── CAScrollLayer.swift ├── CAShapeLayer.swift ├── CASpringAnimation.swift ├── CATextLayer.swift ├── CATiledLayer.swift └── CATransition.swift └── UIKit ├── NSItemProvider.swift ├── NSLayoutConstraint.swift ├── NSLayoutManager.swift ├── NSMutableAttributedString.swift ├── NSMutableParagraphStyle.swift ├── NSObject.swift ├── NSShadow.swift ├── NSStringDrawingContext.swift ├── NSTextAttachment.swift ├── NSTextContainer.swift ├── NSTextStorage.swift ├── UIAccessibilityContentSizeCategoryImageAdjusting.swift ├── UIAccessibilityCustomAction.swift ├── UIAccessibilityCustomRotor.swift ├── UIAccessibilityCustomRotorItemResult.swift ├── UIAccessibilityCustomRotorSearchPredicate.swift ├── UIAccessibilityElement.swift ├── UIAccessibilityIdentification.swift ├── UIActionSheet.swift ├── UIActivityIndicatorView.swift ├── UIActivityViewController.swift ├── UIAlertAction.swift ├── UIAlertController.swift ├── UIAlertView.swift ├── UIApplication.swift ├── UIAttachmentBehavior.swift ├── UIBarButtonItem.swift ├── UIBarButtonItemGroup.swift ├── UIBarItem.swift ├── UIBezierPath.swift ├── UIButton.swift ├── UICloudSharingController.swift ├── UICollectionView.swift ├── UICollectionViewCell.swift ├── UICollectionViewController.swift ├── UICollectionViewFlowLayout.swift ├── UICollectionViewFlowLayoutInvalidationContext.swift ├── UICollectionViewLayoutAttributes.swift ├── UICollectionViewLayoutInvalidationContext.swift ├── UICollectionViewTransitionLayout.swift ├── UICollisionBehavior.swift ├── UIContentSizeCategoryAdjusting.swift ├── UIContextualAction.swift ├── UIControl.swift ├── UIDatePicker.swift ├── UIDevice.swift ├── UIDocument.swift ├── UIDocumentBrowserAction.swift ├── UIDocumentBrowserTransitionController.swift ├── UIDocumentBrowserViewController.swift ├── UIDocumentInteractionController.swift ├── UIDocumentMenuViewController.swift ├── UIDocumentPickerViewController.swift ├── UIDragInteraction.swift ├── UIDragItem.swift ├── UIDragPreviewParameters.swift ├── UIDragSession.swift ├── UIDropInteraction.swift ├── UIDropProposal.swift ├── UIDropSession.swift ├── UIDynamicAnimator.swift ├── UIDynamicItem.swift ├── UIDynamicItemBehavior.swift ├── UIFieldBehavior.swift ├── UIFocusGuide.swift ├── UIFocusItemScrollableContainer.swift ├── UIGestureRecognizer.swift ├── UIGraphicsImageRendererFormat.swift ├── UIGraphicsPDFRendererContext.swift ├── UIGraphicsPDFRendererFormat.swift ├── UIGravityBehavior.swift ├── UIImagePickerController.swift ├── UIImageView.swift ├── UIInputView.swift ├── UIInputViewController.swift ├── UIInterpolatingMotionEffect.swift ├── UIKeyCommand.swift ├── UILabel.swift ├── UILayoutGuide.swift ├── UILocalNotification.swift ├── UILongPressGestureRecognizer.swift ├── UIManagedDocument.swift ├── UIMarkupTextPrintFormatter.swift ├── UIMenuController.swift ├── UIMenuItem.swift ├── UIMotionEffectGroup.swift ├── UIMutableApplicationShortcutItem.swift ├── UIMutableUserNotificationAction.swift ├── UIMutableUserNotificationCategory.swift ├── UINavigationBar.swift ├── UINavigationController.swift ├── UINavigationItem.swift ├── UIPageControl.swift ├── UIPageViewController.swift ├── UIPanGestureRecognizer.swift ├── UIPasteConfiguration.swift ├── UIPasteConfigurationSupporting.swift ├── UIPasteboard.swift ├── UIPencilInteraction.swift ├── UIPercentDrivenInteractiveTransition.swift ├── UIPickerView.swift ├── UIPinchGestureRecognizer.swift ├── UIPopoverBackgroundView.swift ├── UIPopoverController.swift ├── UIPopoverPresentationController.swift ├── UIPresentationController.swift ├── UIPreviewInteraction.swift ├── UIPrintFormatter.swift ├── UIPrintInfo.swift ├── UIPrintInteractionController.swift ├── UIPrintPageRenderer.swift ├── UIPrinterPickerController.swift ├── UIProgressView.swift ├── UIPushBehavior.swift ├── UIRefreshControl.swift ├── UIResponder.swift ├── UIRotationGestureRecognizer.swift ├── UIScreen.swift ├── UIScreenEdgePanGestureRecognizer.swift ├── UIScrollView.swift ├── UISearchBar.swift ├── UISearchController.swift ├── UISegmentedControl.swift ├── UISimpleTextPrintFormatter.swift ├── UISlider.swift ├── UISnapBehavior.swift ├── UISplitViewController.swift ├── UISpringLoadedInteractionContext.swift ├── UISpringLoadedInteractionSupporting.swift ├── UIStackView.swift ├── UIStepper.swift ├── UISwipeActionsConfiguration.swift ├── UISwipeGestureRecognizer.swift ├── UISwitch.swift ├── UITabBar.swift ├── UITabBarController.swift ├── UITabBarItem.swift ├── UITableView.swift ├── UITableViewCell.swift ├── UITableViewController.swift ├── UITableViewHeaderFooterView.swift ├── UITableViewRowAction.swift ├── UITapGestureRecognizer.swift ├── UITextChecker.swift ├── UITextDraggable.swift ├── UITextDropProposal.swift ├── UITextDroppable.swift ├── UITextField.swift ├── UITextInput.swift ├── UITextInputAssistantItem.swift ├── UITextPasteConfigurationSupporting.swift ├── UITextPasteItem.swift ├── UITextView.swift ├── UIToolbar.swift ├── UIVideoEditorController.swift ├── UIView.swift ├── UIViewAnimating.swift ├── UIViewController.swift ├── UIViewControllerPreviewing.swift ├── UIViewPropertyAnimator.swift ├── UIVisualEffectView.swift ├── UIWebView.swift └── UIWindow.swift /.gitignore: -------------------------------------------------------------------------------- 1 | ### macOS ### 2 | *.DS_Store 3 | .AppleDouble 4 | .LSOverride 5 | 6 | # Icon must end with two \r 7 | Icon 8 | 9 | 10 | # Thumbnails 11 | ._* 12 | 13 | # Files that might appear in the root of a volume 14 | .DocumentRevisions-V100 15 | .fseventsd 16 | .Spotlight-V100 17 | .TemporaryItems 18 | .Trashes 19 | .VolumeIcon.icns 20 | .com.apple.timemachine.donotpresent 21 | 22 | # Directories potentially created on remote AFP share 23 | .AppleDB 24 | .AppleDesktop 25 | Network Trash Folder 26 | Temporary Items 27 | .apdisk 28 | 29 | 30 | ### Swift ### 31 | # Xcode 32 | # 33 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 34 | 35 | ## Build generated 36 | build/ 37 | DerivedData/ 38 | 39 | ## Various settings 40 | *.pbxuser 41 | !default.pbxuser 42 | *.mode1v3 43 | !default.mode1v3 44 | *.mode2v3 45 | !default.mode2v3 46 | *.perspectivev3 47 | !default.perspectivev3 48 | xcuserdata/ 49 | 50 | ## Other 51 | *.moved-aside 52 | *.xcuserstate 53 | 54 | ## Obj-C/Swift specific 55 | *.hmap 56 | *.ipa 57 | *.dSYM.zip 58 | *.dSYM 59 | 60 | ## Playgrounds 61 | timeline.xctimeline 62 | playground.xcworkspace 63 | 64 | # Swift Package Manager 65 | # 66 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 67 | # Packages/ 68 | .build/ 69 | 70 | # CocoaPods 71 | # 72 | # We recommend against adding the Pods directory to your .gitignore. However 73 | # you should judge for yourself, the pros and cons are mentioned at: 74 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 75 | # 76 | # Pods/ 77 | 78 | # Carthage 79 | # 80 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 81 | # Carthage/Checkouts 82 | 83 | Carthage/Build 84 | 85 | # fastlane 86 | # 87 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 88 | # screenshots whenever they are needed. 89 | # For more information about the recommended setup visit: 90 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 91 | 92 | fastlane/report.xml 93 | fastlane/Preview.html 94 | fastlane/screenshots 95 | fastlane/test_output 96 | 97 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | osx_image: xcode10.2 3 | env: 4 | - SCHEME="Panda" DESTINATION="platform=iOS Simulator,name=iPhone Xs" 5 | script: 6 | - set -o pipefail 7 | - xcodebuild -scheme "$SCHEME" -destination "$DESTINATION" | xcpretty 8 | -------------------------------------------------------------------------------- /Assets/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wordlessj/Panda/88e08a732197048ac5902a8f31ff84a573a1ddb8/Assets/Logo.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Panda.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'Panda' 3 | s.version = '2.0.0' 4 | s.summary = 'Create view hierarchies declaratively.' 5 | s.homepage = 'https://github.com/wordlessj/Panda' 6 | s.license = { :type => 'MIT', :file => 'LICENSE' } 7 | s.author = 'Javier Zhang' 8 | s.source = { :git => 'https://github.com/wordlessj/Panda.git', :tag => s.version.to_s } 9 | s.swift_version = '5.0' 10 | 11 | s.ios.deployment_target = '8.0' 12 | 13 | s.source_files = 'Sources/**/*.swift' 14 | end 15 | -------------------------------------------------------------------------------- /Panda.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Panda.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Panda.xcodeproj/xcshareddata/xcschemes/Panda.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Sources/Basics/PandaChain.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PandaChain.swift 3 | // Panda 4 | // 5 | // Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | import Foundation 27 | 28 | func unbox(_ item: Item) -> Target { 29 | if let chain = item as? PandaChainProtocol { 30 | return chain.anyObject as! Target 31 | } else { 32 | return item as! Target 33 | } 34 | } 35 | 36 | func unbox(_ item: Item?) -> Target? { 37 | return item.map { unbox($0) } 38 | } 39 | 40 | func unboxArray(_ items: [Any]) -> [Target] { 41 | return items.map { unbox($0) } 42 | } 43 | 44 | func unboxArray(_ items: [Any]?) -> [Target]? { 45 | return items.map { unboxArray($0) } 46 | } 47 | 48 | public protocol PandaChainProtocol { 49 | var anyObject: Any { get } 50 | } 51 | 52 | public class PandaChain { 53 | public let object: Object 54 | 55 | init(object: Object) { 56 | self.object = object 57 | } 58 | } 59 | 60 | extension PandaChain: PandaChainProtocol { 61 | public var anyObject: Any { return object } 62 | } 63 | 64 | extension PandaChain { 65 | /// Set property value with key path. 66 | /// 67 | /// - parameters: 68 | /// - keyPath: Key path of the property, use inferred type expression like `\.property`. 69 | /// - value: New value. 70 | @discardableResult 71 | public func set(_ keyPath: ReferenceWritableKeyPath, _ value: Value) -> PandaChain { 72 | object[keyPath: keyPath] = value 73 | return self 74 | } 75 | 76 | /// Do something on the object. 77 | /// 78 | /// - parameter action: Something to be done. 79 | @discardableResult 80 | public func `do`(_ action: (Object) -> ()) -> PandaChain { 81 | action(object) 82 | return self 83 | } 84 | } 85 | 86 | public protocol PandaChainable {} 87 | 88 | extension PandaChainable { 89 | /// Panda extensions. 90 | public var pd: PandaChain { 91 | return PandaChain(object: self) 92 | } 93 | } 94 | 95 | extension NSObject: PandaChainable {} 96 | -------------------------------------------------------------------------------- /Sources/Basics/SourceDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SourceDelegate.swift 3 | // Panda 4 | // 5 | // Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | import UIKit 27 | 28 | extension PandaChain where Object: UICollectionView { 29 | /// Set `dataSource` and `delegate`. 30 | @discardableResult 31 | public func sourceDelegate(_ object: (UICollectionViewDataSource & UICollectionViewDelegate)?) -> PandaChain { 32 | return dataSource(object).delegate(object) 33 | } 34 | } 35 | 36 | extension PandaChain where Object: UIPageViewController { 37 | /// Set `dataSource` and `delegate`. 38 | @discardableResult 39 | public func sourceDelegate( 40 | _ object: (UIPageViewControllerDataSource & UIPageViewControllerDelegate)? 41 | ) -> PandaChain { 42 | return dataSource(object).delegate(object) 43 | } 44 | } 45 | 46 | extension PandaChain where Object: UIPickerView { 47 | /// Set `dataSource` and `delegate`. 48 | @discardableResult 49 | public func sourceDelegate(_ object: (UIPickerViewDataSource & UIPickerViewDelegate)?) -> PandaChain { 50 | return dataSource(object).delegate(object) 51 | } 52 | } 53 | 54 | extension PandaChain where Object: UITableView { 55 | /// Set `dataSource` and `delegate`. 56 | @discardableResult 57 | public func sourceDelegate(_ object: (UITableViewDataSource & UITableViewDelegate)?) -> PandaChain { 58 | return dataSource(object).delegate(object) 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Sources/Extensions/CALayerExtensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CALayerExtensions.swift 3 | // Panda 4 | // 5 | // Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | import QuartzCore 27 | 28 | extension PandaChain where Object: CALayer { 29 | @discardableResult 30 | public func border(width: CGFloat, color: CGColor?) -> PandaChain { 31 | return borderWidth(width).borderColor(color) 32 | } 33 | 34 | @discardableResult 35 | public func shadow(opacity: CGFloat, 36 | radius: CGFloat, 37 | offset: CGSize, 38 | color: CGColor? = nil, 39 | path: CGPath? = nil) -> PandaChain { 40 | return shadowOpacity(Float(opacity)) 41 | .shadowRadius(radius) 42 | .shadowOffset(offset) 43 | .shadowColor(color) 44 | .shadowPath(path) 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Sources/Extensions/UIAlertControllerExtensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAlertControllerExtensions.swift 3 | // Panda 4 | // 5 | // Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | import UIKit 27 | 28 | extension PandaChain where Object: UIAlertController { 29 | @discardableResult 30 | public func addTextField(configure: ((UITextField) -> ())? = nil) -> PandaChain { 31 | object.addTextField(configurationHandler: configure) 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Extensions/UIGestureRecognizerExtensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIGestureRecognizerExtensions.swift 3 | // Panda 4 | // 5 | // Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | import UIKit 27 | 28 | extension PandaChain where Object: UIGestureRecognizer { 29 | @discardableResult 30 | public func require(toFail otherGestureRecognizer: UIGestureRecognizer) -> PandaChain { 31 | object.require(toFail: otherGestureRecognizer) 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Extensions/UILabelExtensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UILabelExtensions.swift 3 | // Panda 4 | // 5 | // Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | import UIKit 27 | 28 | extension PandaChain where Object: UILabel { 29 | @discardableResult 30 | public func shadow(color: UIColor?, offset: CGSize) -> PandaChain { 31 | return shadowColor(color).shadowOffset(offset) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Sources/Extensions/UIScrollViewExtensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIScrollViewExtensions.swift 3 | // Panda 4 | // 5 | // Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | import UIKit 27 | 28 | extension PandaChain where Object: UIScrollView { 29 | /// Always bounce horizontal and vertical. 30 | @discardableResult 31 | public func alwaysBounce(_ value: Bool) -> PandaChain { 32 | return alwaysBounceHorizontal(value).alwaysBounceVertical(value) 33 | } 34 | 35 | /// Shows horizontal and vertical scroll indicators. 36 | @discardableResult 37 | public func showsScrollIndicators(_ value: Bool) -> PandaChain { 38 | return showsHorizontalScrollIndicator(value).showsVerticalScrollIndicator(value) 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Sources/Extensions/UIViewExtensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewExtensions.swift 3 | // Panda 4 | // 5 | // Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | import UIKit 27 | 28 | extension PandaChain where Object: UIView { 29 | @discardableResult 30 | public func border(width: CGFloat, color: UIColor?) -> PandaChain { 31 | object.layer.pd.border(width: width, color: color?.cgColor) 32 | return self 33 | } 34 | 35 | /// Set corner radius. Also set `clipsToBounds` to `true` to enable corner radius. 36 | @discardableResult 37 | public func cornerRadius(_ value: CGFloat) -> PandaChain { 38 | object.layer.pd.cornerRadius(value).masksToBounds(true) 39 | return self 40 | } 41 | 42 | /// Set `shouldRasterize`. Also set `rasterizationScale` to screen's scale. 43 | @discardableResult 44 | public func shouldRasterize(_ value: Bool) -> PandaChain { 45 | object.layer.pd.shouldRasterize(value).rasterizationScale(UIScreen.main.scale) 46 | return self 47 | } 48 | 49 | @discardableResult 50 | public func shadow(opacity: CGFloat, 51 | radius: CGFloat, 52 | offset: CGSize, 53 | color: UIColor? = nil, 54 | path: CGPath? = nil) -> PandaChain { 55 | object.layer.pd.shadow(opacity: opacity, radius: radius, offset: offset, color: color?.cgColor, path: path) 56 | return self 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Sources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 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 | 2.0.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Sources/Panda.h: -------------------------------------------------------------------------------- 1 | // 2 | // Panda.h 3 | // Panda 4 | // 5 | // Copyright (c) 2017 Javier Zhang (https://wordlessj.github.io/) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | @import UIKit; 27 | 28 | FOUNDATION_EXPORT double PandaVersionNumber; 29 | FOUNDATION_EXPORT const unsigned char PandaVersionString[]; 30 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAAnimation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAAnimation.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | public protocol CAAnimationConvertible {} 11 | 12 | extension CAAnimation: CAAnimationConvertible {} 13 | extension PandaChain: CAAnimationConvertible {} 14 | 15 | extension PandaChain where Object: CAAnimation { 16 | @discardableResult 17 | public func timingFunction(_ value: CAMediaTimingFunction?) -> PandaChain { 18 | object.timingFunction = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func delegate(_ value: CAAnimationDelegate?) -> PandaChain { 24 | object.delegate = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func isRemovedOnCompletion(_ value: Bool) -> PandaChain { 30 | object.isRemovedOnCompletion = value 31 | return self 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAAnimationGroup.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAAnimationGroup.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CAAnimationGroup { 11 | @discardableResult 12 | public func animations(_ value: [CAAnimationConvertible]?) -> PandaChain { 13 | object.animations = unboxArray(value) 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CABasicAnimation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CABasicAnimation.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CABasicAnimation { 11 | @discardableResult 12 | public func fromValue(_ value: Any?) -> PandaChain { 13 | object.fromValue = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func toValue(_ value: Any?) -> PandaChain { 19 | object.toValue = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func byValue(_ value: Any?) -> PandaChain { 25 | object.byValue = value 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CADisplayLink.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CADisplayLink.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CADisplayLink { 11 | @discardableResult 12 | public func isPaused(_ value: Bool) -> PandaChain { 13 | object.isPaused = value 14 | return self 15 | } 16 | 17 | @available(iOS, introduced: 3.1, deprecated: 10.0) 18 | @discardableResult 19 | public func frameInterval(_ value: Int) -> PandaChain { 20 | object.frameInterval = value 21 | return self 22 | } 23 | 24 | @available(iOS 10.0, *) 25 | @discardableResult 26 | public func preferredFramesPerSecond(_ value: Int) -> PandaChain { 27 | object.preferredFramesPerSecond = value 28 | return self 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAEAGLLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAEAGLLayer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | @available(iOS, introduced: 2.0, deprecated: 12.0) 11 | extension PandaChain where Object: CAEAGLLayer { 12 | @available(iOS 9.0, *) 13 | @discardableResult 14 | public func presentsWithTransaction(_ value: Bool) -> PandaChain { 15 | object.presentsWithTransaction = value 16 | return self 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAEmitterLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAEmitterLayer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CAEmitterLayer { 11 | @discardableResult 12 | public func emitterCells(_ value: [CAEmitterCellConvertible]?) -> PandaChain { 13 | object.emitterCells = unboxArray(value) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func birthRate(_ value: Float) -> PandaChain { 19 | object.birthRate = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func lifetime(_ value: Float) -> PandaChain { 25 | object.lifetime = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func emitterPosition(_ value: CGPoint) -> PandaChain { 31 | object.emitterPosition = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func emitterZPosition(_ value: CGFloat) -> PandaChain { 37 | object.emitterZPosition = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func emitterSize(_ value: CGSize) -> PandaChain { 43 | object.emitterSize = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func emitterDepth(_ value: CGFloat) -> PandaChain { 49 | object.emitterDepth = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func emitterShape(_ value: CAEmitterLayerEmitterShape) -> PandaChain { 55 | object.emitterShape = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func emitterMode(_ value: CAEmitterLayerEmitterMode) -> PandaChain { 61 | object.emitterMode = value 62 | return self 63 | } 64 | 65 | @discardableResult 66 | public func renderMode(_ value: CAEmitterLayerRenderMode) -> PandaChain { 67 | object.renderMode = value 68 | return self 69 | } 70 | 71 | @discardableResult 72 | public func preservesDepth(_ value: Bool) -> PandaChain { 73 | object.preservesDepth = value 74 | return self 75 | } 76 | 77 | @discardableResult 78 | public func velocity(_ value: Float) -> PandaChain { 79 | object.velocity = value 80 | return self 81 | } 82 | 83 | @discardableResult 84 | public func scale(_ value: Float) -> PandaChain { 85 | object.scale = value 86 | return self 87 | } 88 | 89 | @discardableResult 90 | public func spin(_ value: Float) -> PandaChain { 91 | object.spin = value 92 | return self 93 | } 94 | 95 | @discardableResult 96 | public func seed(_ value: UInt32) -> PandaChain { 97 | object.seed = value 98 | return self 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAGradientLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAGradientLayer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CAGradientLayer { 11 | @discardableResult 12 | public func colors(_ value: [Any]?) -> PandaChain { 13 | object.colors = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func locations(_ value: [NSNumber]?) -> PandaChain { 19 | object.locations = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func startPoint(_ value: CGPoint) -> PandaChain { 25 | object.startPoint = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func endPoint(_ value: CGPoint) -> PandaChain { 31 | object.endPoint = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func type(_ value: CAGradientLayerType) -> PandaChain { 37 | object.type = value 38 | return self 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAKeyframeAnimation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAKeyframeAnimation.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CAKeyframeAnimation { 11 | @discardableResult 12 | public func values(_ value: [Any]?) -> PandaChain { 13 | object.values = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func path(_ value: CGPath?) -> PandaChain { 19 | object.path = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func keyTimes(_ value: [NSNumber]?) -> PandaChain { 25 | object.keyTimes = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func timingFunctions(_ value: [CAMediaTimingFunction]?) -> PandaChain { 31 | object.timingFunctions = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func calculationMode(_ value: CAAnimationCalculationMode) -> PandaChain { 37 | object.calculationMode = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func tensionValues(_ value: [NSNumber]?) -> PandaChain { 43 | object.tensionValues = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func continuityValues(_ value: [NSNumber]?) -> PandaChain { 49 | object.continuityValues = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func biasValues(_ value: [NSNumber]?) -> PandaChain { 55 | object.biasValues = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func rotationMode(_ value: CAAnimationRotationMode?) -> PandaChain { 61 | object.rotationMode = value 62 | return self 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAMediaTiming.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAMediaTiming.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CAMediaTiming { 11 | @discardableResult 12 | public func beginTime(_ value: CFTimeInterval) -> PandaChain { 13 | object.beginTime = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func duration(_ value: CFTimeInterval) -> PandaChain { 19 | object.duration = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func speed(_ value: Float) -> PandaChain { 25 | object.speed = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func timeOffset(_ value: CFTimeInterval) -> PandaChain { 31 | object.timeOffset = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func repeatCount(_ value: Float) -> PandaChain { 37 | object.repeatCount = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func repeatDuration(_ value: CFTimeInterval) -> PandaChain { 43 | object.repeatDuration = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func autoreverses(_ value: Bool) -> PandaChain { 49 | object.autoreverses = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func fillMode(_ value: CAMediaTimingFillMode) -> PandaChain { 55 | object.fillMode = value 56 | return self 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAPropertyAnimation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAPropertyAnimation.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CAPropertyAnimation { 11 | @discardableResult 12 | public func keyPath(_ value: String?) -> PandaChain { 13 | object.keyPath = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func isAdditive(_ value: Bool) -> PandaChain { 19 | object.isAdditive = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func isCumulative(_ value: Bool) -> PandaChain { 25 | object.isCumulative = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func valueFunction(_ value: CAValueFunction?) -> PandaChain { 31 | object.valueFunction = value 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAReplicatorLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAReplicatorLayer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CAReplicatorLayer { 11 | @discardableResult 12 | public func instanceCount(_ value: Int) -> PandaChain { 13 | object.instanceCount = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func preservesDepth(_ value: Bool) -> PandaChain { 19 | object.preservesDepth = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func instanceDelay(_ value: CFTimeInterval) -> PandaChain { 25 | object.instanceDelay = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func instanceTransform(_ value: CATransform3D) -> PandaChain { 31 | object.instanceTransform = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func instanceColor(_ value: CGColor?) -> PandaChain { 37 | object.instanceColor = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func instanceRedOffset(_ value: Float) -> PandaChain { 43 | object.instanceRedOffset = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func instanceGreenOffset(_ value: Float) -> PandaChain { 49 | object.instanceGreenOffset = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func instanceBlueOffset(_ value: Float) -> PandaChain { 55 | object.instanceBlueOffset = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func instanceAlphaOffset(_ value: Float) -> PandaChain { 61 | object.instanceAlphaOffset = value 62 | return self 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAScrollLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAScrollLayer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CAScrollLayer { 11 | @discardableResult 12 | public func scrollMode(_ value: CAScrollLayerScrollMode) -> PandaChain { 13 | object.scrollMode = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CAShapeLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CAShapeLayer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CAShapeLayer { 11 | @discardableResult 12 | public func path(_ value: CGPath?) -> PandaChain { 13 | object.path = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func fillColor(_ value: CGColor?) -> PandaChain { 19 | object.fillColor = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func fillRule(_ value: CAShapeLayerFillRule) -> PandaChain { 25 | object.fillRule = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func strokeColor(_ value: CGColor?) -> PandaChain { 31 | object.strokeColor = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func strokeStart(_ value: CGFloat) -> PandaChain { 37 | object.strokeStart = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func strokeEnd(_ value: CGFloat) -> PandaChain { 43 | object.strokeEnd = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func lineWidth(_ value: CGFloat) -> PandaChain { 49 | object.lineWidth = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func miterLimit(_ value: CGFloat) -> PandaChain { 55 | object.miterLimit = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func lineCap(_ value: CAShapeLayerLineCap) -> PandaChain { 61 | object.lineCap = value 62 | return self 63 | } 64 | 65 | @discardableResult 66 | public func lineJoin(_ value: CAShapeLayerLineJoin) -> PandaChain { 67 | object.lineJoin = value 68 | return self 69 | } 70 | 71 | @discardableResult 72 | public func lineDashPhase(_ value: CGFloat) -> PandaChain { 73 | object.lineDashPhase = value 74 | return self 75 | } 76 | 77 | @discardableResult 78 | public func lineDashPattern(_ value: [NSNumber]?) -> PandaChain { 79 | object.lineDashPattern = value 80 | return self 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CASpringAnimation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CASpringAnimation.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | @available(iOS 9.0, *) 11 | extension PandaChain where Object: CASpringAnimation { 12 | @discardableResult 13 | public func mass(_ value: CGFloat) -> PandaChain { 14 | object.mass = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func stiffness(_ value: CGFloat) -> PandaChain { 20 | object.stiffness = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func damping(_ value: CGFloat) -> PandaChain { 26 | object.damping = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func initialVelocity(_ value: CGFloat) -> PandaChain { 32 | object.initialVelocity = value 33 | return self 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CATextLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CATextLayer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CATextLayer { 11 | @discardableResult 12 | public func string(_ value: Any?) -> PandaChain { 13 | object.string = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func font(_ value: CFTypeRef?) -> PandaChain { 19 | object.font = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func fontSize(_ value: CGFloat) -> PandaChain { 25 | object.fontSize = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func foregroundColor(_ value: CGColor?) -> PandaChain { 31 | object.foregroundColor = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func isWrapped(_ value: Bool) -> PandaChain { 37 | object.isWrapped = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func truncationMode(_ value: CATextLayerTruncationMode) -> PandaChain { 43 | object.truncationMode = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func alignmentMode(_ value: CATextLayerAlignmentMode) -> PandaChain { 49 | object.alignmentMode = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func allowsFontSubpixelQuantization(_ value: Bool) -> PandaChain { 55 | object.allowsFontSubpixelQuantization = value 56 | return self 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CATiledLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CATiledLayer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CATiledLayer { 11 | @discardableResult 12 | public func levelsOfDetail(_ value: Int) -> PandaChain { 13 | object.levelsOfDetail = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func levelsOfDetailBias(_ value: Int) -> PandaChain { 19 | object.levelsOfDetailBias = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func tileSize(_ value: CGSize) -> PandaChain { 25 | object.tileSize = value 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/QuartzCore/CATransition.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CATransition.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import QuartzCore 9 | 10 | extension PandaChain where Object: CATransition { 11 | @discardableResult 12 | public func type(_ value: CATransitionType) -> PandaChain { 13 | object.type = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func subtype(_ value: CATransitionSubtype?) -> PandaChain { 19 | object.subtype = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func startProgress(_ value: Float) -> PandaChain { 25 | object.startProgress = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func endProgress(_ value: Float) -> PandaChain { 31 | object.endProgress = value 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/NSItemProvider.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSItemProvider.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol NSItemProviderConvertible {} 11 | 12 | extension NSItemProvider: NSItemProviderConvertible {} 13 | extension PandaChain: NSItemProviderConvertible {} 14 | 15 | extension PandaChain where Object: NSItemProvider { 16 | @available(iOS 11.0, *) 17 | @discardableResult 18 | public func teamData(_ value: Data?) -> PandaChain { 19 | object.teamData = value 20 | return self 21 | } 22 | 23 | @available(iOS 11.0, *) 24 | @discardableResult 25 | public func preferredPresentationSize(_ value: CGSize) -> PandaChain { 26 | object.preferredPresentationSize = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func preferredPresentationStyle(_ value: NSItemProvider.PreferredPresentationStyle) -> PandaChain { 32 | object.preferredPresentationStyle = value 33 | return self 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/NSLayoutConstraint.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSLayoutConstraint.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: NSLayoutConstraint { 11 | @discardableResult 12 | public func priority(_ value: UILayoutPriority) -> PandaChain { 13 | object.priority = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func shouldBeArchived(_ value: Bool) -> PandaChain { 19 | object.shouldBeArchived = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func constant(_ value: CGFloat) -> PandaChain { 25 | object.constant = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func isActive(_ value: Bool) -> PandaChain { 31 | object.isActive = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func identifier(_ value: String?) -> PandaChain { 37 | object.identifier = value 38 | return self 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/NSMutableAttributedString.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableAttributedString.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: NSMutableAttributedString { 11 | @discardableResult 12 | public func attributes(_ attrs: [NSAttributedString.Key : Any]?, range: NSRange) -> PandaChain { 13 | object.setAttributes(attrs, range: range) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func attributedString(_ attrString: NSAttributedString) -> PandaChain { 19 | object.setAttributedString(attrString) 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/NSMutableParagraphStyle.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableParagraphStyle.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: NSMutableParagraphStyle { 11 | @discardableResult 12 | public func lineSpacing(_ value: CGFloat) -> PandaChain { 13 | object.lineSpacing = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func paragraphSpacing(_ value: CGFloat) -> PandaChain { 19 | object.paragraphSpacing = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func alignment(_ value: NSTextAlignment) -> PandaChain { 25 | object.alignment = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func firstLineHeadIndent(_ value: CGFloat) -> PandaChain { 31 | object.firstLineHeadIndent = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func headIndent(_ value: CGFloat) -> PandaChain { 37 | object.headIndent = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func tailIndent(_ value: CGFloat) -> PandaChain { 43 | object.tailIndent = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func lineBreakMode(_ value: NSLineBreakMode) -> PandaChain { 49 | object.lineBreakMode = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func minimumLineHeight(_ value: CGFloat) -> PandaChain { 55 | object.minimumLineHeight = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func maximumLineHeight(_ value: CGFloat) -> PandaChain { 61 | object.maximumLineHeight = value 62 | return self 63 | } 64 | 65 | @discardableResult 66 | public func baseWritingDirection(_ value: NSWritingDirection) -> PandaChain { 67 | object.baseWritingDirection = value 68 | return self 69 | } 70 | 71 | @discardableResult 72 | public func lineHeightMultiple(_ value: CGFloat) -> PandaChain { 73 | object.lineHeightMultiple = value 74 | return self 75 | } 76 | 77 | @discardableResult 78 | public func paragraphSpacingBefore(_ value: CGFloat) -> PandaChain { 79 | object.paragraphSpacingBefore = value 80 | return self 81 | } 82 | 83 | @discardableResult 84 | public func hyphenationFactor(_ value: Float) -> PandaChain { 85 | object.hyphenationFactor = value 86 | return self 87 | } 88 | 89 | @discardableResult 90 | public func tabStops(_ value: [NSTextTab]!) -> PandaChain { 91 | object.tabStops = value 92 | return self 93 | } 94 | 95 | @discardableResult 96 | public func defaultTabInterval(_ value: CGFloat) -> PandaChain { 97 | object.defaultTabInterval = value 98 | return self 99 | } 100 | 101 | @available(iOS 9.0, *) 102 | @discardableResult 103 | public func allowsDefaultTighteningForTruncation(_ value: Bool) -> PandaChain { 104 | object.allowsDefaultTighteningForTruncation = value 105 | return self 106 | } 107 | 108 | @available(iOS 9.0, *) 109 | @discardableResult 110 | public func paragraphStyle(_ obj: NSParagraphStyle) -> PandaChain { 111 | object.setParagraphStyle(obj) 112 | return self 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/NSShadow.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSShadow.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: NSShadow { 11 | @discardableResult 12 | public func shadowOffset(_ value: CGSize) -> PandaChain { 13 | object.shadowOffset = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func shadowBlurRadius(_ value: CGFloat) -> PandaChain { 19 | object.shadowBlurRadius = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func shadowColor(_ value: Any?) -> PandaChain { 25 | object.shadowColor = value 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/NSStringDrawingContext.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSStringDrawingContext.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: NSStringDrawingContext { 11 | @discardableResult 12 | public func minimumScaleFactor(_ value: CGFloat) -> PandaChain { 13 | object.minimumScaleFactor = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/NSTextAttachment.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSTextAttachment.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol NSTextAttachmentConvertible {} 11 | 12 | extension NSTextAttachment: NSTextAttachmentConvertible {} 13 | extension PandaChain: NSTextAttachmentConvertible {} 14 | 15 | extension PandaChain where Object: NSTextAttachment { 16 | @discardableResult 17 | public func contents(_ value: Data?) -> PandaChain { 18 | object.contents = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func fileType(_ value: String?) -> PandaChain { 24 | object.fileType = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func image(_ value: UIImage?) -> PandaChain { 30 | object.image = value 31 | return self 32 | } 33 | 34 | @discardableResult 35 | public func bounds(_ value: CGRect) -> PandaChain { 36 | object.bounds = value 37 | return self 38 | } 39 | 40 | @discardableResult 41 | public func fileWrapper(_ value: FileWrapper?) -> PandaChain { 42 | object.fileWrapper = value 43 | return self 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/NSTextContainer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSTextContainer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol NSTextContainerConvertible {} 11 | 12 | extension NSTextContainer: NSTextContainerConvertible {} 13 | extension PandaChain: NSTextContainerConvertible {} 14 | 15 | extension PandaChain where Object: NSTextContainer { 16 | @discardableResult 17 | public func layoutManager(_ value: NSLayoutManagerConvertible?) -> PandaChain { 18 | object.layoutManager = unbox(value) 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func size(_ value: CGSize) -> PandaChain { 24 | object.size = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func exclusionPaths(_ value: [UIBezierPathConvertible]) -> PandaChain { 30 | object.exclusionPaths = unboxArray(value) 31 | return self 32 | } 33 | 34 | @discardableResult 35 | public func lineBreakMode(_ value: NSLineBreakMode) -> PandaChain { 36 | object.lineBreakMode = value 37 | return self 38 | } 39 | 40 | @discardableResult 41 | public func lineFragmentPadding(_ value: CGFloat) -> PandaChain { 42 | object.lineFragmentPadding = value 43 | return self 44 | } 45 | 46 | @discardableResult 47 | public func maximumNumberOfLines(_ value: Int) -> PandaChain { 48 | object.maximumNumberOfLines = value 49 | return self 50 | } 51 | 52 | @discardableResult 53 | public func widthTracksTextView(_ value: Bool) -> PandaChain { 54 | object.widthTracksTextView = value 55 | return self 56 | } 57 | 58 | @discardableResult 59 | public func heightTracksTextView(_ value: Bool) -> PandaChain { 60 | object.heightTracksTextView = value 61 | return self 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/NSTextStorage.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSTextStorage.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol NSTextStorageConvertible {} 11 | 12 | extension NSTextStorage: NSTextStorageConvertible {} 13 | extension PandaChain: NSTextStorageConvertible {} 14 | 15 | extension PandaChain where Object: NSTextStorage { 16 | @discardableResult 17 | public func delegate(_ value: NSTextStorageDelegate?) -> PandaChain { 18 | object.delegate = value 19 | return self 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAccessibilityContentSizeCategoryImageAdjusting.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAccessibilityContentSizeCategoryImageAdjusting.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIAccessibilityContentSizeCategoryImageAdjusting { 12 | @discardableResult 13 | public func adjustsImageSizeForAccessibilityContentSizeCategory(_ value: Bool) -> PandaChain { 14 | object.adjustsImageSizeForAccessibilityContentSizeCategory = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAccessibilityCustomAction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAccessibilityCustomAction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIAccessibilityCustomActionConvertible {} 11 | 12 | extension UIAccessibilityCustomAction: UIAccessibilityCustomActionConvertible {} 13 | extension PandaChain: UIAccessibilityCustomActionConvertible {} 14 | 15 | extension PandaChain where Object: UIAccessibilityCustomAction { 16 | @discardableResult 17 | public func name(_ value: String) -> PandaChain { 18 | object.name = value 19 | return self 20 | } 21 | 22 | @available(iOS 11.0, *) 23 | @discardableResult 24 | public func attributedName(_ value: NSAttributedString) -> PandaChain { 25 | object.attributedName = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func target(_ value: AnyObject?) -> PandaChain { 31 | object.target = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func selector(_ value: Selector) -> PandaChain { 37 | object.selector = value 38 | return self 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAccessibilityCustomRotor.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAccessibilityCustomRotor.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | public protocol UIAccessibilityCustomRotorConvertible {} 12 | 13 | @available(iOS 10.0, *) 14 | extension UIAccessibilityCustomRotor: UIAccessibilityCustomRotorConvertible {} 15 | @available(iOS 10.0, *) 16 | extension PandaChain: UIAccessibilityCustomRotorConvertible {} 17 | 18 | @available(iOS 10.0, *) 19 | extension PandaChain where Object: UIAccessibilityCustomRotor { 20 | @discardableResult 21 | public func name(_ value: String) -> PandaChain { 22 | object.name = value 23 | return self 24 | } 25 | 26 | @available(iOS 11.0, *) 27 | @discardableResult 28 | public func attributedName(_ value: NSAttributedString) -> PandaChain { 29 | object.attributedName = value 30 | return self 31 | } 32 | 33 | @discardableResult 34 | public func itemSearchBlock(_ value: @escaping UIAccessibilityCustomRotor.Search) -> PandaChain { 35 | object.itemSearchBlock = value 36 | return self 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAccessibilityCustomRotorItemResult.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAccessibilityCustomRotorItemResult.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | public protocol UIAccessibilityCustomRotorItemResultConvertible {} 12 | 13 | @available(iOS 10.0, *) 14 | extension UIAccessibilityCustomRotorItemResult: UIAccessibilityCustomRotorItemResultConvertible {} 15 | @available(iOS 10.0, *) 16 | extension PandaChain: UIAccessibilityCustomRotorItemResultConvertible {} 17 | 18 | @available(iOS 10.0, *) 19 | extension PandaChain where Object: UIAccessibilityCustomRotorItemResult { 20 | @discardableResult 21 | public func targetElement(_ value: NSObjectProtocol?) -> PandaChain { 22 | object.targetElement = value 23 | return self 24 | } 25 | 26 | @discardableResult 27 | public func targetRange(_ value: UITextRange?) -> PandaChain { 28 | object.targetRange = value 29 | return self 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAccessibilityCustomRotorSearchPredicate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAccessibilityCustomRotorSearchPredicate.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | extension PandaChain where Object: UIAccessibilityCustomRotorSearchPredicate { 12 | @discardableResult 13 | public func currentItem(_ value: UIAccessibilityCustomRotorItemResultConvertible) -> PandaChain { 14 | object.currentItem = unbox(value) 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func searchDirection(_ value: UIAccessibilityCustomRotor.Direction) -> PandaChain { 20 | object.searchDirection = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAccessibilityElement.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAccessibilityElement.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIAccessibilityElement { 11 | @discardableResult 12 | public func accessibilityContainer(_ value: AnyObject?) -> PandaChain { 13 | object.accessibilityContainer = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func isAccessibilityElement(_ value: Bool) -> PandaChain { 19 | object.isAccessibilityElement = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func accessibilityLabel(_ value: String?) -> PandaChain { 25 | object.accessibilityLabel = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func accessibilityHint(_ value: String?) -> PandaChain { 31 | object.accessibilityHint = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func accessibilityValue(_ value: String?) -> PandaChain { 37 | object.accessibilityValue = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func accessibilityFrame(_ value: CGRect) -> PandaChain { 43 | object.accessibilityFrame = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func accessibilityTraits(_ value: UIAccessibilityTraits) -> PandaChain { 49 | object.accessibilityTraits = value 50 | return self 51 | } 52 | 53 | @available(iOS 10.0, *) 54 | @discardableResult 55 | public func accessibilityFrameInContainerSpace(_ value: CGRect) -> PandaChain { 56 | object.accessibilityFrameInContainerSpace = value 57 | return self 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAccessibilityIdentification.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAccessibilityIdentification.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIAccessibilityIdentification { 11 | @discardableResult 12 | public func accessibilityIdentifier(_ value: String?) -> PandaChain { 13 | object.accessibilityIdentifier = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIActionSheet.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIActionSheet.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS, introduced: 2.0, deprecated: 8.3) 11 | extension PandaChain where Object: UIActionSheet { 12 | @discardableResult 13 | public func delegate(_ value: UIActionSheetDelegate?) -> PandaChain { 14 | object.delegate = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func title(_ value: String) -> PandaChain { 20 | object.title = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func actionSheetStyle(_ value: UIActionSheetStyle) -> PandaChain { 26 | object.actionSheetStyle = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func cancelButtonIndex(_ value: Int) -> PandaChain { 32 | object.cancelButtonIndex = value 33 | return self 34 | } 35 | 36 | @discardableResult 37 | public func destructiveButtonIndex(_ value: Int) -> PandaChain { 38 | object.destructiveButtonIndex = value 39 | return self 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIActivityIndicatorView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIActivityIndicatorView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIActivityIndicatorView { 11 | @discardableResult 12 | public func style(_ value: UIActivityIndicatorView.Style) -> PandaChain { 13 | object.style = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func hidesWhenStopped(_ value: Bool) -> PandaChain { 19 | object.hidesWhenStopped = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func color(_ value: UIColor!) -> PandaChain { 25 | object.color = value 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIActivityViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIActivityViewController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIActivityViewController { 11 | @discardableResult 12 | public func completionWithItemsHandler(_ value: UIActivityViewController.CompletionWithItemsHandler?) -> PandaChain { 13 | object.completionWithItemsHandler = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func excludedActivityTypes(_ value: [UIActivity.ActivityType]?) -> PandaChain { 19 | object.excludedActivityTypes = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAlertAction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAlertAction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIAlertActionConvertible {} 11 | 12 | extension UIAlertAction: UIAlertActionConvertible {} 13 | extension PandaChain: UIAlertActionConvertible {} 14 | 15 | extension PandaChain where Object: UIAlertAction { 16 | @discardableResult 17 | public func isEnabled(_ value: Bool) -> PandaChain { 18 | object.isEnabled = value 19 | return self 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAlertController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAlertController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIAlertController { 11 | @available(iOS 9.0, *) 12 | @discardableResult 13 | public func preferredAction(_ value: UIAlertActionConvertible?) -> PandaChain { 14 | object.preferredAction = unbox(value) 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func title(_ value: String?) -> PandaChain { 20 | object.title = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func message(_ value: String?) -> PandaChain { 26 | object.message = value 27 | return self 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAlertView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAlertView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS, introduced: 2.0, deprecated: 9.0) 11 | extension PandaChain where Object: UIAlertView { 12 | @discardableResult 13 | public func delegate(_ value: AnyObject?) -> PandaChain { 14 | object.delegate = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func title(_ value: String) -> PandaChain { 20 | object.title = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func message(_ value: String?) -> PandaChain { 26 | object.message = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func cancelButtonIndex(_ value: Int) -> PandaChain { 32 | object.cancelButtonIndex = value 33 | return self 34 | } 35 | 36 | @discardableResult 37 | public func alertViewStyle(_ value: UIAlertViewStyle) -> PandaChain { 38 | object.alertViewStyle = value 39 | return self 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIApplication.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIApplication.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIApplication { 11 | @discardableResult 12 | public func delegate(_ value: UIApplicationDelegate?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func isIdleTimerDisabled(_ value: Bool) -> PandaChain { 19 | object.isIdleTimerDisabled = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func isNetworkActivityIndicatorVisible(_ value: Bool) -> PandaChain { 25 | object.isNetworkActivityIndicatorVisible = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func applicationIconBadgeNumber(_ value: Int) -> PandaChain { 31 | object.applicationIconBadgeNumber = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func applicationSupportsShakeToEdit(_ value: Bool) -> PandaChain { 37 | object.applicationSupportsShakeToEdit = value 38 | return self 39 | } 40 | 41 | @available(iOS, introduced: 4.0, deprecated: 10.0) 42 | @discardableResult 43 | public func scheduledLocalNotifications(_ value: [UILocalNotificationConvertible]?) -> PandaChain { 44 | object.scheduledLocalNotifications = unboxArray(value) 45 | return self 46 | } 47 | 48 | @available(iOS 9.0, *) 49 | @discardableResult 50 | public func shortcutItems(_ value: [UIApplicationShortcutItem]?) -> PandaChain { 51 | object.shortcutItems = value 52 | return self 53 | } 54 | 55 | @discardableResult 56 | public func minimumBackgroundFetchInterval(_ minimumBackgroundFetchInterval: TimeInterval) -> PandaChain { 57 | object.setMinimumBackgroundFetchInterval(minimumBackgroundFetchInterval) 58 | return self 59 | } 60 | 61 | @available(iOS, introduced: 5.0, deprecated: 9.0) 62 | @discardableResult 63 | public func newsstandIconImage(_ image: UIImage?) -> PandaChain { 64 | object.setNewsstandIconImage(image) 65 | return self 66 | } 67 | 68 | @available(iOS, introduced: 2.0, deprecated: 9.0) 69 | @discardableResult 70 | public func statusBarOrientation(_ interfaceOrientation: UIInterfaceOrientation, animated: Bool) -> PandaChain { 71 | object.setStatusBarOrientation(interfaceOrientation, animated: animated) 72 | return self 73 | } 74 | 75 | @available(iOS, introduced: 2.0, deprecated: 9.0) 76 | @discardableResult 77 | public func statusBarStyle(_ statusBarStyle: UIStatusBarStyle, animated: Bool) -> PandaChain { 78 | object.setStatusBarStyle(statusBarStyle, animated: animated) 79 | return self 80 | } 81 | 82 | @available(iOS, introduced: 3.2, deprecated: 9.0) 83 | @discardableResult 84 | public func statusBarHidden(_ hidden: Bool, with animation: UIStatusBarAnimation) -> PandaChain { 85 | object.setStatusBarHidden(hidden, with: animation) 86 | return self 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIAttachmentBehavior.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAttachmentBehavior.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIAttachmentBehavior { 11 | @discardableResult 12 | public func anchorPoint(_ value: CGPoint) -> PandaChain { 13 | object.anchorPoint = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func length(_ value: CGFloat) -> PandaChain { 19 | object.length = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func damping(_ value: CGFloat) -> PandaChain { 25 | object.damping = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func frequency(_ value: CGFloat) -> PandaChain { 31 | object.frequency = value 32 | return self 33 | } 34 | 35 | @available(iOS 9.0, *) 36 | @discardableResult 37 | public func frictionTorque(_ value: CGFloat) -> PandaChain { 38 | object.frictionTorque = value 39 | return self 40 | } 41 | 42 | @available(iOS 9.0, *) 43 | @discardableResult 44 | public func attachmentRange(_ value: UIFloatRange) -> PandaChain { 45 | object.attachmentRange = value 46 | return self 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIBarButtonItemGroup.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIBarButtonItemGroup.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 9.0, *) 11 | public protocol UIBarButtonItemGroupConvertible {} 12 | 13 | @available(iOS 9.0, *) 14 | extension UIBarButtonItemGroup: UIBarButtonItemGroupConvertible {} 15 | @available(iOS 9.0, *) 16 | extension PandaChain: UIBarButtonItemGroupConvertible {} 17 | 18 | @available(iOS 9.0, *) 19 | extension PandaChain where Object: UIBarButtonItemGroup { 20 | @discardableResult 21 | public func barButtonItems(_ value: [UIBarButtonItemConvertible]) -> PandaChain { 22 | object.barButtonItems = unboxArray(value) 23 | return self 24 | } 25 | 26 | @discardableResult 27 | public func representativeItem(_ value: UIBarButtonItemConvertible?) -> PandaChain { 28 | object.representativeItem = unbox(value) 29 | return self 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIBarItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIBarItem.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIBarItem { 11 | @discardableResult 12 | public func isEnabled(_ value: Bool) -> PandaChain { 13 | object.isEnabled = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func title(_ value: String?) -> PandaChain { 19 | object.title = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func image(_ value: UIImage?) -> PandaChain { 25 | object.image = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func landscapeImagePhone(_ value: UIImage?) -> PandaChain { 31 | object.landscapeImagePhone = value 32 | return self 33 | } 34 | 35 | @available(iOS 11.0, *) 36 | @discardableResult 37 | public func largeContentSizeImage(_ value: UIImage?) -> PandaChain { 38 | object.largeContentSizeImage = value 39 | return self 40 | } 41 | 42 | @discardableResult 43 | public func imageInsets(_ value: UIEdgeInsets) -> PandaChain { 44 | object.imageInsets = value 45 | return self 46 | } 47 | 48 | @discardableResult 49 | public func landscapeImagePhoneInsets(_ value: UIEdgeInsets) -> PandaChain { 50 | object.landscapeImagePhoneInsets = value 51 | return self 52 | } 53 | 54 | @available(iOS 11.0, *) 55 | @discardableResult 56 | public func largeContentSizeImageInsets(_ value: UIEdgeInsets) -> PandaChain { 57 | object.largeContentSizeImageInsets = value 58 | return self 59 | } 60 | 61 | @discardableResult 62 | public func tag(_ value: Int) -> PandaChain { 63 | object.tag = value 64 | return self 65 | } 66 | 67 | @discardableResult 68 | public func titleTextAttributes(_ attributes: [NSAttributedString.Key : Any]?, for state: UIControl.State) -> PandaChain { 69 | object.setTitleTextAttributes(attributes, for: state) 70 | return self 71 | } 72 | 73 | @discardableResult 74 | public func titleTextAttributes( 75 | _ normal: [NSAttributedString.Key : Any], 76 | highlighted: [NSAttributedString.Key : Any]? = nil, 77 | selected: [NSAttributedString.Key : Any]? = nil, 78 | disabled: [NSAttributedString.Key : Any]? = nil 79 | ) -> PandaChain { 80 | return forControlState( 81 | normal: normal, 82 | highlighted: highlighted, 83 | selected: selected, 84 | disabled: disabled, 85 | setter: object.setTitleTextAttributes 86 | ) 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIBezierPath.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIBezierPath.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIBezierPathConvertible {} 11 | 12 | extension UIBezierPath: UIBezierPathConvertible {} 13 | extension PandaChain: UIBezierPathConvertible {} 14 | 15 | extension PandaChain where Object: UIBezierPath { 16 | @discardableResult 17 | public func cgPath(_ value: CGPath) -> PandaChain { 18 | object.cgPath = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func lineWidth(_ value: CGFloat) -> PandaChain { 24 | object.lineWidth = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func lineCapStyle(_ value: CGLineCap) -> PandaChain { 30 | object.lineCapStyle = value 31 | return self 32 | } 33 | 34 | @discardableResult 35 | public func lineJoinStyle(_ value: CGLineJoin) -> PandaChain { 36 | object.lineJoinStyle = value 37 | return self 38 | } 39 | 40 | @discardableResult 41 | public func miterLimit(_ value: CGFloat) -> PandaChain { 42 | object.miterLimit = value 43 | return self 44 | } 45 | 46 | @discardableResult 47 | public func flatness(_ value: CGFloat) -> PandaChain { 48 | object.flatness = value 49 | return self 50 | } 51 | 52 | @discardableResult 53 | public func usesEvenOddFillRule(_ value: Bool) -> PandaChain { 54 | object.usesEvenOddFillRule = value 55 | return self 56 | } 57 | 58 | @discardableResult 59 | public func lineDash(_ pattern: UnsafePointer?, count: Int, phase: CGFloat) -> PandaChain { 60 | object.setLineDash(pattern, count: count, phase: phase) 61 | return self 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICloudSharingController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICloudSharingController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | extension PandaChain where Object: UICloudSharingController { 12 | @discardableResult 13 | public func delegate(_ value: UICloudSharingControllerDelegate?) -> PandaChain { 14 | object.delegate = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func availablePermissions(_ value: UICloudSharingController.PermissionOptions) -> PandaChain { 20 | object.availablePermissions = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICollectionView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UICollectionViewConvertible {} 11 | 12 | extension UICollectionView: UICollectionViewConvertible {} 13 | extension PandaChain: UICollectionViewConvertible {} 14 | 15 | extension PandaChain where Object: UICollectionView { 16 | @discardableResult 17 | public func collectionViewLayout(_ value: UICollectionViewLayout) -> PandaChain { 18 | object.collectionViewLayout = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func delegate(_ value: UICollectionViewDelegate?) -> PandaChain { 24 | object.delegate = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func dataSource(_ value: UICollectionViewDataSource?) -> PandaChain { 30 | object.dataSource = value 31 | return self 32 | } 33 | 34 | @available(iOS 10.0, *) 35 | @discardableResult 36 | public func prefetchDataSource(_ value: UICollectionViewDataSourcePrefetching?) -> PandaChain { 37 | object.prefetchDataSource = value 38 | return self 39 | } 40 | 41 | @available(iOS 10.0, *) 42 | @discardableResult 43 | public func isPrefetchingEnabled(_ value: Bool) -> PandaChain { 44 | object.isPrefetchingEnabled = value 45 | return self 46 | } 47 | 48 | @available(iOS 11.0, *) 49 | @discardableResult 50 | public func dragDelegate(_ value: UICollectionViewDragDelegate?) -> PandaChain { 51 | object.dragDelegate = value 52 | return self 53 | } 54 | 55 | @available(iOS 11.0, *) 56 | @discardableResult 57 | public func dropDelegate(_ value: UICollectionViewDropDelegate?) -> PandaChain { 58 | object.dropDelegate = value 59 | return self 60 | } 61 | 62 | @available(iOS 11.0, *) 63 | @discardableResult 64 | public func dragInteractionEnabled(_ value: Bool) -> PandaChain { 65 | object.dragInteractionEnabled = value 66 | return self 67 | } 68 | 69 | @available(iOS 11.0, *) 70 | @discardableResult 71 | public func reorderingCadence(_ value: UICollectionView.ReorderingCadence) -> PandaChain { 72 | object.reorderingCadence = value 73 | return self 74 | } 75 | 76 | @discardableResult 77 | public func backgroundView(_ value: UIViewConvertible?) -> PandaChain { 78 | object.backgroundView = unbox(value) 79 | return self 80 | } 81 | 82 | @discardableResult 83 | public func allowsSelection(_ value: Bool) -> PandaChain { 84 | object.allowsSelection = value 85 | return self 86 | } 87 | 88 | @discardableResult 89 | public func allowsMultipleSelection(_ value: Bool) -> PandaChain { 90 | object.allowsMultipleSelection = value 91 | return self 92 | } 93 | 94 | @available(iOS 9.0, *) 95 | @discardableResult 96 | public func remembersLastFocusedIndexPath(_ value: Bool) -> PandaChain { 97 | object.remembersLastFocusedIndexPath = value 98 | return self 99 | } 100 | 101 | @discardableResult 102 | public func collectionViewLayout(_ layout: UICollectionViewLayout, animated: Bool) -> PandaChain { 103 | object.setCollectionViewLayout(layout, animated: animated) 104 | return self 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionViewCell.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UICollectionViewCell { 11 | @discardableResult 12 | public func isSelected(_ value: Bool) -> PandaChain { 13 | object.isSelected = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func isHighlighted(_ value: Bool) -> PandaChain { 19 | object.isHighlighted = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func backgroundView(_ value: UIViewConvertible?) -> PandaChain { 25 | object.backgroundView = unbox(value) 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func selectedBackgroundView(_ value: UIViewConvertible?) -> PandaChain { 31 | object.selectedBackgroundView = unbox(value) 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICollectionViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionViewController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UICollectionViewController { 11 | @discardableResult 12 | public func collectionView(_ value: UICollectionViewConvertible!) -> PandaChain { 13 | object.collectionView = unbox(value) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func clearsSelectionOnViewWillAppear(_ value: Bool) -> PandaChain { 19 | object.clearsSelectionOnViewWillAppear = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func useLayoutToLayoutNavigationTransitions(_ value: Bool) -> PandaChain { 25 | object.useLayoutToLayoutNavigationTransitions = value 26 | return self 27 | } 28 | 29 | @available(iOS 9.0, *) 30 | @discardableResult 31 | public func installsStandardGestureForInteractiveMovement(_ value: Bool) -> PandaChain { 32 | object.installsStandardGestureForInteractiveMovement = value 33 | return self 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICollectionViewFlowLayout.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionViewFlowLayout.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UICollectionViewFlowLayout { 11 | @discardableResult 12 | public func minimumLineSpacing(_ value: CGFloat) -> PandaChain { 13 | object.minimumLineSpacing = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func minimumInteritemSpacing(_ value: CGFloat) -> PandaChain { 19 | object.minimumInteritemSpacing = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func itemSize(_ value: CGSize) -> PandaChain { 25 | object.itemSize = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func estimatedItemSize(_ value: CGSize) -> PandaChain { 31 | object.estimatedItemSize = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func scrollDirection(_ value: UICollectionView.ScrollDirection) -> PandaChain { 37 | object.scrollDirection = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func headerReferenceSize(_ value: CGSize) -> PandaChain { 43 | object.headerReferenceSize = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func footerReferenceSize(_ value: CGSize) -> PandaChain { 49 | object.footerReferenceSize = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func sectionInset(_ value: UIEdgeInsets) -> PandaChain { 55 | object.sectionInset = value 56 | return self 57 | } 58 | 59 | @available(iOS 11.0, *) 60 | @discardableResult 61 | public func sectionInsetReference(_ value: UICollectionViewFlowLayout.SectionInsetReference) -> PandaChain { 62 | object.sectionInsetReference = value 63 | return self 64 | } 65 | 66 | @available(iOS 9.0, *) 67 | @discardableResult 68 | public func sectionHeadersPinToVisibleBounds(_ value: Bool) -> PandaChain { 69 | object.sectionHeadersPinToVisibleBounds = value 70 | return self 71 | } 72 | 73 | @available(iOS 9.0, *) 74 | @discardableResult 75 | public func sectionFootersPinToVisibleBounds(_ value: Bool) -> PandaChain { 76 | object.sectionFootersPinToVisibleBounds = value 77 | return self 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICollectionViewFlowLayoutInvalidationContext.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionViewFlowLayoutInvalidationContext.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UICollectionViewFlowLayoutInvalidationContext { 11 | @discardableResult 12 | public func invalidateFlowLayoutDelegateMetrics(_ value: Bool) -> PandaChain { 13 | object.invalidateFlowLayoutDelegateMetrics = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func invalidateFlowLayoutAttributes(_ value: Bool) -> PandaChain { 19 | object.invalidateFlowLayoutAttributes = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICollectionViewLayoutAttributes.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionViewLayoutAttributes.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UICollectionViewLayoutAttributes { 11 | @discardableResult 12 | public func frame(_ value: CGRect) -> PandaChain { 13 | object.frame = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func center(_ value: CGPoint) -> PandaChain { 19 | object.center = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func size(_ value: CGSize) -> PandaChain { 25 | object.size = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func transform3D(_ value: CATransform3D) -> PandaChain { 31 | object.transform3D = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func bounds(_ value: CGRect) -> PandaChain { 37 | object.bounds = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func transform(_ value: CGAffineTransform) -> PandaChain { 43 | object.transform = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func alpha(_ value: CGFloat) -> PandaChain { 49 | object.alpha = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func zIndex(_ value: Int) -> PandaChain { 55 | object.zIndex = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func isHidden(_ value: Bool) -> PandaChain { 61 | object.isHidden = value 62 | return self 63 | } 64 | 65 | @discardableResult 66 | public func indexPath(_ value: IndexPath) -> PandaChain { 67 | object.indexPath = value 68 | return self 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICollectionViewLayoutInvalidationContext.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionViewLayoutInvalidationContext.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UICollectionViewLayoutInvalidationContext { 11 | @discardableResult 12 | public func contentOffsetAdjustment(_ value: CGPoint) -> PandaChain { 13 | object.contentOffsetAdjustment = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func contentSizeAdjustment(_ value: CGSize) -> PandaChain { 19 | object.contentSizeAdjustment = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICollectionViewTransitionLayout.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionViewTransitionLayout.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UICollectionViewTransitionLayout { 11 | @discardableResult 12 | public func transitionProgress(_ value: CGFloat) -> PandaChain { 13 | object.transitionProgress = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UICollisionBehavior.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollisionBehavior.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UICollisionBehavior { 11 | @discardableResult 12 | public func collisionMode(_ value: UICollisionBehavior.Mode) -> PandaChain { 13 | object.collisionMode = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func translatesReferenceBoundsIntoBoundary(_ value: Bool) -> PandaChain { 19 | object.translatesReferenceBoundsIntoBoundary = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func collisionDelegate(_ value: UICollisionBehaviorDelegate?) -> PandaChain { 25 | object.collisionDelegate = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func translatesReferenceBoundsIntoBoundary(with insets: UIEdgeInsets) -> PandaChain { 31 | object.setTranslatesReferenceBoundsIntoBoundary(with: insets) 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIContentSizeCategoryAdjusting.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIContentSizeCategoryAdjusting.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | extension PandaChain where Object: UIContentSizeCategoryAdjusting { 12 | @discardableResult 13 | public func adjustsFontForContentSizeCategory(_ value: Bool) -> PandaChain { 14 | object.adjustsFontForContentSizeCategory = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIContextualAction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIContextualAction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIContextualAction { 12 | @discardableResult 13 | public func title(_ value: String?) -> PandaChain { 14 | object.title = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func backgroundColor(_ value: UIColor!) -> PandaChain { 20 | object.backgroundColor = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func image(_ value: UIImage?) -> PandaChain { 26 | object.image = value 27 | return self 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIControl.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIControl.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIControl { 11 | @discardableResult 12 | public func isEnabled(_ value: Bool) -> PandaChain { 13 | object.isEnabled = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func isSelected(_ value: Bool) -> PandaChain { 19 | object.isSelected = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func isHighlighted(_ value: Bool) -> PandaChain { 25 | object.isHighlighted = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func contentVerticalAlignment(_ value: UIControl.ContentVerticalAlignment) -> PandaChain { 31 | object.contentVerticalAlignment = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func contentHorizontalAlignment(_ value: UIControl.ContentHorizontalAlignment) -> PandaChain { 37 | object.contentHorizontalAlignment = value 38 | return self 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDatePicker.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDatePicker.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIDatePicker { 11 | @discardableResult 12 | public func datePickerMode(_ value: UIDatePicker.Mode) -> PandaChain { 13 | object.datePickerMode = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func locale(_ value: Locale?) -> PandaChain { 19 | object.locale = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func calendar(_ value: Calendar!) -> PandaChain { 25 | object.calendar = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func timeZone(_ value: TimeZone?) -> PandaChain { 31 | object.timeZone = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func date(_ value: Date) -> PandaChain { 37 | object.date = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func minimumDate(_ value: Date?) -> PandaChain { 43 | object.minimumDate = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func maximumDate(_ value: Date?) -> PandaChain { 49 | object.maximumDate = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func countDownDuration(_ value: TimeInterval) -> PandaChain { 55 | object.countDownDuration = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func minuteInterval(_ value: Int) -> PandaChain { 61 | object.minuteInterval = value 62 | return self 63 | } 64 | 65 | @discardableResult 66 | public func date(_ date: Date, animated: Bool) -> PandaChain { 67 | object.setDate(date, animated: animated) 68 | return self 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDevice.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDevice.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIDevice { 11 | @discardableResult 12 | public func isBatteryMonitoringEnabled(_ value: Bool) -> PandaChain { 13 | object.isBatteryMonitoringEnabled = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func isProximityMonitoringEnabled(_ value: Bool) -> PandaChain { 19 | object.isProximityMonitoringEnabled = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDocument.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDocument.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIDocument { 11 | @discardableResult 12 | public func fileModificationDate(_ value: Date?) -> PandaChain { 13 | object.fileModificationDate = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func undoManager(_ value: UndoManager!) -> PandaChain { 19 | object.undoManager = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func userActivity(_ value: NSUserActivity?) -> PandaChain { 25 | object.userActivity = value 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDocumentBrowserAction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDocumentBrowserAction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | public protocol UIDocumentBrowserActionConvertible {} 12 | 13 | @available(iOS 11.0, *) 14 | extension UIDocumentBrowserAction: UIDocumentBrowserActionConvertible {} 15 | @available(iOS 11.0, *) 16 | extension PandaChain: UIDocumentBrowserActionConvertible {} 17 | 18 | @available(iOS 11.0, *) 19 | extension PandaChain where Object: UIDocumentBrowserAction { 20 | @discardableResult 21 | public func image(_ value: UIImage?) -> PandaChain { 22 | object.image = value 23 | return self 24 | } 25 | 26 | @discardableResult 27 | public func supportedContentTypes(_ value: [String]) -> PandaChain { 28 | object.supportedContentTypes = value 29 | return self 30 | } 31 | 32 | @discardableResult 33 | public func supportsMultipleItems(_ value: Bool) -> PandaChain { 34 | object.supportsMultipleItems = value 35 | return self 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDocumentBrowserTransitionController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDocumentBrowserTransitionController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIDocumentBrowserTransitionController { 12 | @discardableResult 13 | public func loadingProgress(_ value: Progress?) -> PandaChain { 14 | object.loadingProgress = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func targetView(_ value: UIViewConvertible?) -> PandaChain { 20 | object.targetView = unbox(value) 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDocumentBrowserViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDocumentBrowserViewController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIDocumentBrowserViewController { 12 | @discardableResult 13 | public func delegate(_ value: UIDocumentBrowserViewControllerDelegate?) -> PandaChain { 14 | object.delegate = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func allowsDocumentCreation(_ value: Bool) -> PandaChain { 20 | object.allowsDocumentCreation = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func allowsPickingMultipleItems(_ value: Bool) -> PandaChain { 26 | object.allowsPickingMultipleItems = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func additionalLeadingNavigationBarButtonItems(_ value: [UIBarButtonItemConvertible]) -> PandaChain { 32 | object.additionalLeadingNavigationBarButtonItems = unboxArray(value) 33 | return self 34 | } 35 | 36 | @discardableResult 37 | public func additionalTrailingNavigationBarButtonItems(_ value: [UIBarButtonItemConvertible]) -> PandaChain { 38 | object.additionalTrailingNavigationBarButtonItems = unboxArray(value) 39 | return self 40 | } 41 | 42 | @discardableResult 43 | public func customActions(_ value: [UIDocumentBrowserActionConvertible]) -> PandaChain { 44 | object.customActions = unboxArray(value) 45 | return self 46 | } 47 | 48 | @discardableResult 49 | public func browserUserInterfaceStyle(_ value: UIDocumentBrowserViewController.BrowserUserInterfaceStyle) -> PandaChain { 50 | object.browserUserInterfaceStyle = value 51 | return self 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDocumentInteractionController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDocumentInteractionController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIDocumentInteractionController { 11 | @discardableResult 12 | public func delegate(_ value: UIDocumentInteractionControllerDelegate?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func url(_ value: URL?) -> PandaChain { 19 | object.url = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func uti(_ value: String?) -> PandaChain { 25 | object.uti = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func name(_ value: String?) -> PandaChain { 31 | object.name = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func annotation(_ value: Any?) -> PandaChain { 37 | object.annotation = value 38 | return self 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDocumentMenuViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDocumentMenuViewController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS, introduced: 8.0, deprecated: 11.0) 11 | extension PandaChain where Object: UIDocumentMenuViewController { 12 | @discardableResult 13 | public func delegate(_ value: UIDocumentMenuDelegate?) -> PandaChain { 14 | object.delegate = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDocumentPickerViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDocumentPickerViewController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIDocumentPickerViewController { 11 | @discardableResult 12 | public func delegate(_ value: UIDocumentPickerDelegate?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | 17 | @available(iOS 11.0, *) 18 | @discardableResult 19 | public func allowsMultipleSelection(_ value: Bool) -> PandaChain { 20 | object.allowsMultipleSelection = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDragInteraction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDragInteraction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIDragInteraction { 12 | @discardableResult 13 | public func allowsSimultaneousRecognitionDuringLift(_ value: Bool) -> PandaChain { 14 | object.allowsSimultaneousRecognitionDuringLift = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func isEnabled(_ value: Bool) -> PandaChain { 20 | object.isEnabled = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDragItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDragItem.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIDragItem { 12 | @discardableResult 13 | public func localObject(_ value: Any?) -> PandaChain { 14 | object.localObject = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDragPreviewParameters.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDragPreviewParameters.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIDragPreviewParameters { 12 | @discardableResult 13 | public func visiblePath(_ value: UIBezierPathConvertible?) -> PandaChain { 14 | object.visiblePath = unbox(value) 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func backgroundColor(_ value: UIColor!) -> PandaChain { 20 | object.backgroundColor = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDragSession.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDragSession.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIDragSession { 12 | @discardableResult 13 | public func localContext(_ value: Any?) -> PandaChain { 14 | object.localContext = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDropInteraction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDropInteraction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIDropInteraction { 12 | @discardableResult 13 | public func allowsSimultaneousDropSessions(_ value: Bool) -> PandaChain { 14 | object.allowsSimultaneousDropSessions = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDropProposal.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDropProposal.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIDropProposal { 12 | @discardableResult 13 | public func isPrecise(_ value: Bool) -> PandaChain { 14 | object.isPrecise = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func prefersFullSizePreview(_ value: Bool) -> PandaChain { 20 | object.prefersFullSizePreview = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDropSession.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDropSession.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIDropSession { 12 | @discardableResult 13 | public func progressIndicatorStyle(_ value: UIDropSessionProgressIndicatorStyle) -> PandaChain { 14 | object.progressIndicatorStyle = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDynamicAnimator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDynamicAnimator.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIDynamicAnimator { 11 | @discardableResult 12 | public func delegate(_ value: UIDynamicAnimatorDelegate?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDynamicItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDynamicItem.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIDynamicItem { 11 | @discardableResult 12 | public func center(_ value: CGPoint) -> PandaChain { 13 | object.center = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func transform(_ value: CGAffineTransform) -> PandaChain { 19 | object.transform = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIDynamicItemBehavior.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDynamicItemBehavior.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIDynamicItemBehavior { 11 | @discardableResult 12 | public func elasticity(_ value: CGFloat) -> PandaChain { 13 | object.elasticity = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func friction(_ value: CGFloat) -> PandaChain { 19 | object.friction = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func density(_ value: CGFloat) -> PandaChain { 25 | object.density = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func resistance(_ value: CGFloat) -> PandaChain { 31 | object.resistance = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func angularResistance(_ value: CGFloat) -> PandaChain { 37 | object.angularResistance = value 38 | return self 39 | } 40 | 41 | @available(iOS 9.0, *) 42 | @discardableResult 43 | public func charge(_ value: CGFloat) -> PandaChain { 44 | object.charge = value 45 | return self 46 | } 47 | 48 | @available(iOS 9.0, *) 49 | @discardableResult 50 | public func isAnchored(_ value: Bool) -> PandaChain { 51 | object.isAnchored = value 52 | return self 53 | } 54 | 55 | @discardableResult 56 | public func allowsRotation(_ value: Bool) -> PandaChain { 57 | object.allowsRotation = value 58 | return self 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIFieldBehavior.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIFieldBehavior.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 9.0, *) 11 | extension PandaChain where Object: UIFieldBehavior { 12 | @discardableResult 13 | public func position(_ value: CGPoint) -> PandaChain { 14 | object.position = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func region(_ value: UIRegion) -> PandaChain { 20 | object.region = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func strength(_ value: CGFloat) -> PandaChain { 26 | object.strength = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func falloff(_ value: CGFloat) -> PandaChain { 32 | object.falloff = value 33 | return self 34 | } 35 | 36 | @discardableResult 37 | public func minimumRadius(_ value: CGFloat) -> PandaChain { 38 | object.minimumRadius = value 39 | return self 40 | } 41 | 42 | @discardableResult 43 | public func direction(_ value: CGVector) -> PandaChain { 44 | object.direction = value 45 | return self 46 | } 47 | 48 | @discardableResult 49 | public func smoothness(_ value: CGFloat) -> PandaChain { 50 | object.smoothness = value 51 | return self 52 | } 53 | 54 | @discardableResult 55 | public func animationSpeed(_ value: CGFloat) -> PandaChain { 56 | object.animationSpeed = value 57 | return self 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIFocusGuide.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIFocusGuide.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 9.0, *) 11 | extension PandaChain where Object: UIFocusGuide { 12 | @discardableResult 13 | public func isEnabled(_ value: Bool) -> PandaChain { 14 | object.isEnabled = value 15 | return self 16 | } 17 | 18 | @available(iOS 10.0, *) 19 | @discardableResult 20 | public func preferredFocusEnvironments(_ value: [UIFocusEnvironment]!) -> PandaChain { 21 | object.preferredFocusEnvironments = value 22 | return self 23 | } 24 | 25 | @available(iOS, introduced: 9.0, deprecated: 10.0) 26 | @discardableResult 27 | public func preferredFocusedView(_ value: UIViewConvertible?) -> PandaChain { 28 | object.preferredFocusedView = unbox(value) 29 | return self 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIFocusItemScrollableContainer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIFocusItemScrollableContainer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 12.0, *) 11 | extension PandaChain where Object: UIFocusItemScrollableContainer { 12 | @discardableResult 13 | public func contentOffset(_ value: CGPoint) -> PandaChain { 14 | object.contentOffset = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIGestureRecognizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIGestureRecognizer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIGestureRecognizerConvertible {} 11 | 12 | extension UIGestureRecognizer: UIGestureRecognizerConvertible {} 13 | extension PandaChain: UIGestureRecognizerConvertible {} 14 | 15 | extension PandaChain where Object: UIGestureRecognizer { 16 | @discardableResult 17 | public func delegate(_ value: UIGestureRecognizerDelegate?) -> PandaChain { 18 | object.delegate = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func isEnabled(_ value: Bool) -> PandaChain { 24 | object.isEnabled = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func cancelsTouchesInView(_ value: Bool) -> PandaChain { 30 | object.cancelsTouchesInView = value 31 | return self 32 | } 33 | 34 | @discardableResult 35 | public func delaysTouchesBegan(_ value: Bool) -> PandaChain { 36 | object.delaysTouchesBegan = value 37 | return self 38 | } 39 | 40 | @discardableResult 41 | public func delaysTouchesEnded(_ value: Bool) -> PandaChain { 42 | object.delaysTouchesEnded = value 43 | return self 44 | } 45 | 46 | @available(iOS 9.0, *) 47 | @discardableResult 48 | public func allowedTouchTypes(_ value: [NSNumber]) -> PandaChain { 49 | object.allowedTouchTypes = value 50 | return self 51 | } 52 | 53 | @available(iOS 9.0, *) 54 | @discardableResult 55 | public func allowedPressTypes(_ value: [NSNumber]) -> PandaChain { 56 | object.allowedPressTypes = value 57 | return self 58 | } 59 | 60 | @available(iOS 9.2, *) 61 | @discardableResult 62 | public func requiresExclusiveTouchType(_ value: Bool) -> PandaChain { 63 | object.requiresExclusiveTouchType = value 64 | return self 65 | } 66 | 67 | @available(iOS 11.0, *) 68 | @discardableResult 69 | public func name(_ value: String?) -> PandaChain { 70 | object.name = value 71 | return self 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIGraphicsImageRendererFormat.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIGraphicsImageRendererFormat.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | extension PandaChain where Object: UIGraphicsImageRendererFormat { 12 | @discardableResult 13 | public func scale(_ value: CGFloat) -> PandaChain { 14 | object.scale = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func opaque(_ value: Bool) -> PandaChain { 20 | object.opaque = value 21 | return self 22 | } 23 | 24 | @available(iOS, introduced: 10.0, deprecated: 12.0) 25 | @discardableResult 26 | public func prefersExtendedRange(_ value: Bool) -> PandaChain { 27 | object.prefersExtendedRange = value 28 | return self 29 | } 30 | 31 | @available(iOS 12.0, *) 32 | @discardableResult 33 | public func preferredRange(_ value: UIGraphicsImageRendererFormat.Range) -> PandaChain { 34 | object.preferredRange = value 35 | return self 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIGraphicsPDFRendererContext.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIGraphicsPDFRendererContext.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | extension PandaChain where Object: UIGraphicsPDFRendererContext { 12 | @discardableResult 13 | public func url(_ url: URL, for rect: CGRect) -> PandaChain { 14 | object.setURL(url, for: rect) 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func destinationWithName(_ name: String, for rect: CGRect) -> PandaChain { 20 | object.setDestinationWithName(name, for: rect) 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIGraphicsPDFRendererFormat.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIGraphicsPDFRendererFormat.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | extension PandaChain where Object: UIGraphicsPDFRendererFormat { 12 | @discardableResult 13 | public func documentInfo(_ value: [String : Any]) -> PandaChain { 14 | object.documentInfo = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIGravityBehavior.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIGravityBehavior.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIGravityBehavior { 11 | @discardableResult 12 | public func gravityDirection(_ value: CGVector) -> PandaChain { 13 | object.gravityDirection = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func angle(_ value: CGFloat) -> PandaChain { 19 | object.angle = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func magnitude(_ value: CGFloat) -> PandaChain { 25 | object.magnitude = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func angle(_ angle: CGFloat, magnitude: CGFloat) -> PandaChain { 31 | object.setAngle(angle, magnitude: magnitude) 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIImagePickerController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIImagePickerController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIImagePickerController { 11 | @discardableResult 12 | public func delegate(_ value: (UIImagePickerControllerDelegate & UINavigationControllerDelegate)?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func sourceType(_ value: UIImagePickerController.SourceType) -> PandaChain { 19 | object.sourceType = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func mediaTypes(_ value: [String]) -> PandaChain { 25 | object.mediaTypes = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func allowsEditing(_ value: Bool) -> PandaChain { 31 | object.allowsEditing = value 32 | return self 33 | } 34 | 35 | @available(iOS 11.0, *) 36 | @discardableResult 37 | public func imageExportPreset(_ value: UIImagePickerController.ImageURLExportPreset) -> PandaChain { 38 | object.imageExportPreset = value 39 | return self 40 | } 41 | 42 | @discardableResult 43 | public func videoMaximumDuration(_ value: TimeInterval) -> PandaChain { 44 | object.videoMaximumDuration = value 45 | return self 46 | } 47 | 48 | @discardableResult 49 | public func videoQuality(_ value: UIImagePickerController.QualityType) -> PandaChain { 50 | object.videoQuality = value 51 | return self 52 | } 53 | 54 | @available(iOS 11.0, *) 55 | @discardableResult 56 | public func videoExportPreset(_ value: String) -> PandaChain { 57 | object.videoExportPreset = value 58 | return self 59 | } 60 | 61 | @discardableResult 62 | public func showsCameraControls(_ value: Bool) -> PandaChain { 63 | object.showsCameraControls = value 64 | return self 65 | } 66 | 67 | @discardableResult 68 | public func cameraOverlayView(_ value: UIViewConvertible?) -> PandaChain { 69 | object.cameraOverlayView = unbox(value) 70 | return self 71 | } 72 | 73 | @discardableResult 74 | public func cameraViewTransform(_ value: CGAffineTransform) -> PandaChain { 75 | object.cameraViewTransform = value 76 | return self 77 | } 78 | 79 | @discardableResult 80 | public func cameraCaptureMode(_ value: UIImagePickerController.CameraCaptureMode) -> PandaChain { 81 | object.cameraCaptureMode = value 82 | return self 83 | } 84 | 85 | @discardableResult 86 | public func cameraDevice(_ value: UIImagePickerController.CameraDevice) -> PandaChain { 87 | object.cameraDevice = value 88 | return self 89 | } 90 | 91 | @discardableResult 92 | public func cameraFlashMode(_ value: UIImagePickerController.CameraFlashMode) -> PandaChain { 93 | object.cameraFlashMode = value 94 | return self 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIImageView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIImageView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIImageView { 11 | @discardableResult 12 | public func image(_ value: UIImage?) -> PandaChain { 13 | object.image = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func highlightedImage(_ value: UIImage?) -> PandaChain { 19 | object.highlightedImage = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func isUserInteractionEnabled(_ value: Bool) -> PandaChain { 25 | object.isUserInteractionEnabled = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func isHighlighted(_ value: Bool) -> PandaChain { 31 | object.isHighlighted = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func animationImages(_ value: [UIImage]?) -> PandaChain { 37 | object.animationImages = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func highlightedAnimationImages(_ value: [UIImage]?) -> PandaChain { 43 | object.highlightedAnimationImages = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func animationDuration(_ value: TimeInterval) -> PandaChain { 49 | object.animationDuration = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func animationRepeatCount(_ value: Int) -> PandaChain { 55 | object.animationRepeatCount = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func tintColor(_ value: UIColor!) -> PandaChain { 61 | object.tintColor = value 62 | return self 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIInputView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIInputView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIInputViewConvertible {} 11 | 12 | extension UIInputView: UIInputViewConvertible {} 13 | extension PandaChain: UIInputViewConvertible {} 14 | 15 | extension PandaChain where Object: UIInputView { 16 | @available(iOS 9.0, *) 17 | @discardableResult 18 | public func allowsSelfSizing(_ value: Bool) -> PandaChain { 19 | object.allowsSelfSizing = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIInputViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIInputViewController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIInputViewController { 11 | @discardableResult 12 | public func inputView(_ value: UIInputViewConvertible?) -> PandaChain { 13 | object.inputView = unbox(value) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func primaryLanguage(_ value: String?) -> PandaChain { 19 | object.primaryLanguage = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func hasDictationKey(_ value: Bool) -> PandaChain { 25 | object.hasDictationKey = value 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIInterpolatingMotionEffect.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIInterpolatingMotionEffect.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIInterpolatingMotionEffect { 11 | @discardableResult 12 | public func minimumRelativeValue(_ value: Any?) -> PandaChain { 13 | object.minimumRelativeValue = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func maximumRelativeValue(_ value: Any?) -> PandaChain { 19 | object.maximumRelativeValue = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIKeyCommand.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIKeyCommand.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIKeyCommand { 11 | @available(iOS 9.0, *) 12 | @discardableResult 13 | public func discoverabilityTitle(_ value: String?) -> PandaChain { 14 | object.discoverabilityTitle = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UILabel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UILabel.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UILabel { 11 | @discardableResult 12 | public func text(_ value: String?) -> PandaChain { 13 | object.text = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func textColor(_ value: UIColor!) -> PandaChain { 19 | object.textColor = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func shadowColor(_ value: UIColor?) -> PandaChain { 25 | object.shadowColor = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func shadowOffset(_ value: CGSize) -> PandaChain { 31 | object.shadowOffset = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func textAlignment(_ value: NSTextAlignment) -> PandaChain { 37 | object.textAlignment = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func lineBreakMode(_ value: NSLineBreakMode) -> PandaChain { 43 | object.lineBreakMode = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func attributedText(_ value: NSAttributedString?) -> PandaChain { 49 | object.attributedText = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func highlightedTextColor(_ value: UIColor?) -> PandaChain { 55 | object.highlightedTextColor = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func isHighlighted(_ value: Bool) -> PandaChain { 61 | object.isHighlighted = value 62 | return self 63 | } 64 | 65 | @discardableResult 66 | public func isUserInteractionEnabled(_ value: Bool) -> PandaChain { 67 | object.isUserInteractionEnabled = value 68 | return self 69 | } 70 | 71 | @discardableResult 72 | public func isEnabled(_ value: Bool) -> PandaChain { 73 | object.isEnabled = value 74 | return self 75 | } 76 | 77 | @discardableResult 78 | public func numberOfLines(_ value: Int) -> PandaChain { 79 | object.numberOfLines = value 80 | return self 81 | } 82 | 83 | @discardableResult 84 | public func adjustsFontSizeToFitWidth(_ value: Bool) -> PandaChain { 85 | object.adjustsFontSizeToFitWidth = value 86 | return self 87 | } 88 | 89 | @discardableResult 90 | public func baselineAdjustment(_ value: UIBaselineAdjustment) -> PandaChain { 91 | object.baselineAdjustment = value 92 | return self 93 | } 94 | 95 | @discardableResult 96 | public func minimumScaleFactor(_ value: CGFloat) -> PandaChain { 97 | object.minimumScaleFactor = value 98 | return self 99 | } 100 | 101 | @available(iOS 9.0, *) 102 | @discardableResult 103 | public func allowsDefaultTighteningForTruncation(_ value: Bool) -> PandaChain { 104 | object.allowsDefaultTighteningForTruncation = value 105 | return self 106 | } 107 | 108 | @discardableResult 109 | public func preferredMaxLayoutWidth(_ value: CGFloat) -> PandaChain { 110 | object.preferredMaxLayoutWidth = value 111 | return self 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UILayoutGuide.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UILayoutGuide.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 9.0, *) 11 | extension PandaChain where Object: UILayoutGuide { 12 | @discardableResult 13 | public func owningView(_ value: UIViewConvertible?) -> PandaChain { 14 | object.owningView = unbox(value) 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func identifier(_ value: String) -> PandaChain { 20 | object.identifier = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UILocalNotification.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UILocalNotification.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | import CoreLocation 10 | 11 | @available(iOS, introduced: 4.0, deprecated: 10.0) 12 | public protocol UILocalNotificationConvertible {} 13 | 14 | @available(iOS, introduced: 4.0, deprecated: 10.0) 15 | extension UILocalNotification: UILocalNotificationConvertible {} 16 | @available(iOS, introduced: 4.0, deprecated: 10.0) 17 | extension PandaChain: UILocalNotificationConvertible {} 18 | 19 | @available(iOS, introduced: 4.0, deprecated: 10.0) 20 | extension PandaChain where Object: UILocalNotification { 21 | @discardableResult 22 | public func fireDate(_ value: Date?) -> PandaChain { 23 | object.fireDate = value 24 | return self 25 | } 26 | 27 | @discardableResult 28 | public func timeZone(_ value: TimeZone?) -> PandaChain { 29 | object.timeZone = value 30 | return self 31 | } 32 | 33 | @discardableResult 34 | public func repeatInterval(_ value: NSCalendar.Unit) -> PandaChain { 35 | object.repeatInterval = value 36 | return self 37 | } 38 | 39 | @discardableResult 40 | public func repeatCalendar(_ value: Calendar?) -> PandaChain { 41 | object.repeatCalendar = value 42 | return self 43 | } 44 | 45 | @discardableResult 46 | public func region(_ value: CLRegion?) -> PandaChain { 47 | object.region = value 48 | return self 49 | } 50 | 51 | @discardableResult 52 | public func regionTriggersOnce(_ value: Bool) -> PandaChain { 53 | object.regionTriggersOnce = value 54 | return self 55 | } 56 | 57 | @discardableResult 58 | public func alertBody(_ value: String?) -> PandaChain { 59 | object.alertBody = value 60 | return self 61 | } 62 | 63 | @discardableResult 64 | public func hasAction(_ value: Bool) -> PandaChain { 65 | object.hasAction = value 66 | return self 67 | } 68 | 69 | @discardableResult 70 | public func alertAction(_ value: String?) -> PandaChain { 71 | object.alertAction = value 72 | return self 73 | } 74 | 75 | @discardableResult 76 | public func alertLaunchImage(_ value: String?) -> PandaChain { 77 | object.alertLaunchImage = value 78 | return self 79 | } 80 | 81 | @available(iOS 8.2, *) 82 | @discardableResult 83 | public func alertTitle(_ value: String?) -> PandaChain { 84 | object.alertTitle = value 85 | return self 86 | } 87 | 88 | @discardableResult 89 | public func soundName(_ value: String?) -> PandaChain { 90 | object.soundName = value 91 | return self 92 | } 93 | 94 | @discardableResult 95 | public func applicationIconBadgeNumber(_ value: Int) -> PandaChain { 96 | object.applicationIconBadgeNumber = value 97 | return self 98 | } 99 | 100 | @discardableResult 101 | public func userInfo(_ value: [AnyHashable : Any]?) -> PandaChain { 102 | object.userInfo = value 103 | return self 104 | } 105 | 106 | @discardableResult 107 | public func category(_ value: String?) -> PandaChain { 108 | object.category = value 109 | return self 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UILongPressGestureRecognizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UILongPressGestureRecognizer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UILongPressGestureRecognizer { 11 | @discardableResult 12 | public func numberOfTapsRequired(_ value: Int) -> PandaChain { 13 | object.numberOfTapsRequired = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func numberOfTouchesRequired(_ value: Int) -> PandaChain { 19 | object.numberOfTouchesRequired = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func minimumPressDuration(_ value: TimeInterval) -> PandaChain { 25 | object.minimumPressDuration = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func allowableMovement(_ value: CGFloat) -> PandaChain { 31 | object.allowableMovement = value 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIManagedDocument.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIManagedDocument.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIManagedDocument { 11 | @discardableResult 12 | public func persistentStoreOptions(_ value: [AnyHashable : Any]?) -> PandaChain { 13 | object.persistentStoreOptions = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func modelConfiguration(_ value: String?) -> PandaChain { 19 | object.modelConfiguration = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIMarkupTextPrintFormatter.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIMarkupTextPrintFormatter.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIMarkupTextPrintFormatter { 11 | @discardableResult 12 | public func markupText(_ value: String?) -> PandaChain { 13 | object.markupText = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIMenuController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIMenuController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIMenuController { 11 | @discardableResult 12 | public func isMenuVisible(_ value: Bool) -> PandaChain { 13 | object.isMenuVisible = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func arrowDirection(_ value: UIMenuController.ArrowDirection) -> PandaChain { 19 | object.arrowDirection = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func menuItems(_ value: [UIMenuItemConvertible]?) -> PandaChain { 25 | object.menuItems = unboxArray(value) 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func menuVisible(_ menuVisible: Bool, animated: Bool) -> PandaChain { 31 | object.setMenuVisible(menuVisible, animated: animated) 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func targetRect(_ targetRect: CGRect, in targetView: UIView) -> PandaChain { 37 | object.setTargetRect(targetRect, in: targetView) 38 | return self 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIMenuItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIMenuItem.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIMenuItemConvertible {} 11 | 12 | extension UIMenuItem: UIMenuItemConvertible {} 13 | extension PandaChain: UIMenuItemConvertible {} 14 | 15 | extension PandaChain where Object: UIMenuItem { 16 | @discardableResult 17 | public func title(_ value: String) -> PandaChain { 18 | object.title = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func action(_ value: Selector) -> PandaChain { 24 | object.action = value 25 | return self 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIMotionEffectGroup.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIMotionEffectGroup.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIMotionEffectGroup { 11 | @discardableResult 12 | public func motionEffects(_ value: [UIMotionEffect]?) -> PandaChain { 13 | object.motionEffects = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIMutableApplicationShortcutItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIMutableApplicationShortcutItem.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 9.0, *) 11 | extension PandaChain where Object: UIMutableApplicationShortcutItem { 12 | @discardableResult 13 | public func type(_ value: String) -> PandaChain { 14 | object.type = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func localizedTitle(_ value: String) -> PandaChain { 20 | object.localizedTitle = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func localizedSubtitle(_ value: String?) -> PandaChain { 26 | object.localizedSubtitle = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func icon(_ value: UIApplicationShortcutIcon?) -> PandaChain { 32 | object.icon = value 33 | return self 34 | } 35 | 36 | @discardableResult 37 | public func userInfo(_ value: [String : NSSecureCoding]?) -> PandaChain { 38 | object.userInfo = value 39 | return self 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIMutableUserNotificationAction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIMutableUserNotificationAction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS, introduced: 8.0, deprecated: 10.0) 11 | extension PandaChain where Object: UIMutableUserNotificationAction { 12 | @discardableResult 13 | public func identifier(_ value: String?) -> PandaChain { 14 | object.identifier = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func title(_ value: String?) -> PandaChain { 20 | object.title = value 21 | return self 22 | } 23 | 24 | @available(iOS 9.0, *) 25 | @discardableResult 26 | public func behavior(_ value: UIUserNotificationActionBehavior) -> PandaChain { 27 | object.behavior = value 28 | return self 29 | } 30 | 31 | @available(iOS 9.0, *) 32 | @discardableResult 33 | public func parameters(_ value: [AnyHashable : Any]) -> PandaChain { 34 | object.parameters = value 35 | return self 36 | } 37 | 38 | @discardableResult 39 | public func activationMode(_ value: UIUserNotificationActivationMode) -> PandaChain { 40 | object.activationMode = value 41 | return self 42 | } 43 | 44 | @discardableResult 45 | public func isAuthenticationRequired(_ value: Bool) -> PandaChain { 46 | object.isAuthenticationRequired = value 47 | return self 48 | } 49 | 50 | @discardableResult 51 | public func isDestructive(_ value: Bool) -> PandaChain { 52 | object.isDestructive = value 53 | return self 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIMutableUserNotificationCategory.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIMutableUserNotificationCategory.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS, introduced: 8.0, deprecated: 10.0) 11 | extension PandaChain where Object: UIMutableUserNotificationCategory { 12 | @discardableResult 13 | public func identifier(_ value: String?) -> PandaChain { 14 | object.identifier = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func actions(_ actions: [UIUserNotificationAction]?, for context: UIUserNotificationActionContext) -> PandaChain { 20 | object.setActions(actions, for: context) 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UINavigationController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UINavigationController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UINavigationController { 11 | @discardableResult 12 | public func viewControllers(_ value: [UIViewControllerConvertible]) -> PandaChain { 13 | object.viewControllers = unboxArray(value) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func isNavigationBarHidden(_ value: Bool) -> PandaChain { 19 | object.isNavigationBarHidden = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func isToolbarHidden(_ value: Bool) -> PandaChain { 25 | object.isToolbarHidden = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func delegate(_ value: UINavigationControllerDelegate?) -> PandaChain { 31 | object.delegate = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func hidesBarsWhenKeyboardAppears(_ value: Bool) -> PandaChain { 37 | object.hidesBarsWhenKeyboardAppears = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func hidesBarsOnSwipe(_ value: Bool) -> PandaChain { 43 | object.hidesBarsOnSwipe = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func hidesBarsWhenVerticallyCompact(_ value: Bool) -> PandaChain { 49 | object.hidesBarsWhenVerticallyCompact = value 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func hidesBarsOnTap(_ value: Bool) -> PandaChain { 55 | object.hidesBarsOnTap = value 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func viewControllers(_ viewControllers: [UIViewControllerConvertible], animated: Bool) -> PandaChain { 61 | object.setViewControllers(unboxArray(viewControllers), animated: animated) 62 | return self 63 | } 64 | 65 | @discardableResult 66 | public func navigationBarHidden(_ hidden: Bool, animated: Bool) -> PandaChain { 67 | object.setNavigationBarHidden(hidden, animated: animated) 68 | return self 69 | } 70 | 71 | @discardableResult 72 | public func toolbarHidden(_ hidden: Bool, animated: Bool) -> PandaChain { 73 | object.setToolbarHidden(hidden, animated: animated) 74 | return self 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPageControl.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPageControl.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPageControl { 11 | @discardableResult 12 | public func numberOfPages(_ value: Int) -> PandaChain { 13 | object.numberOfPages = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func currentPage(_ value: Int) -> PandaChain { 19 | object.currentPage = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func hidesForSinglePage(_ value: Bool) -> PandaChain { 25 | object.hidesForSinglePage = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func defersCurrentPageDisplay(_ value: Bool) -> PandaChain { 31 | object.defersCurrentPageDisplay = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func pageIndicatorTintColor(_ value: UIColor?) -> PandaChain { 37 | object.pageIndicatorTintColor = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func currentPageIndicatorTintColor(_ value: UIColor?) -> PandaChain { 43 | object.currentPageIndicatorTintColor = value 44 | return self 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPageViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPageViewController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPageViewController { 11 | @discardableResult 12 | public func delegate(_ value: UIPageViewControllerDelegate?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func dataSource(_ value: UIPageViewControllerDataSource?) -> PandaChain { 19 | object.dataSource = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func isDoubleSided(_ value: Bool) -> PandaChain { 25 | object.isDoubleSided = value 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPanGestureRecognizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPanGestureRecognizer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPanGestureRecognizer { 11 | @discardableResult 12 | public func minimumNumberOfTouches(_ value: Int) -> PandaChain { 13 | object.minimumNumberOfTouches = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func maximumNumberOfTouches(_ value: Int) -> PandaChain { 19 | object.maximumNumberOfTouches = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func translation(_ translation: CGPoint, in view: UIView?) -> PandaChain { 25 | object.setTranslation(translation, in: view) 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPasteConfiguration.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPasteConfiguration.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | public protocol UIPasteConfigurationConvertible {} 12 | 13 | @available(iOS 11.0, *) 14 | extension UIPasteConfiguration: UIPasteConfigurationConvertible {} 15 | @available(iOS 11.0, *) 16 | extension PandaChain: UIPasteConfigurationConvertible {} 17 | 18 | @available(iOS 11.0, *) 19 | extension PandaChain where Object: UIPasteConfiguration { 20 | @discardableResult 21 | public func acceptableTypeIdentifiers(_ value: [String]) -> PandaChain { 22 | object.acceptableTypeIdentifiers = value 23 | return self 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPasteConfigurationSupporting.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPasteConfigurationSupporting.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UIPasteConfigurationSupporting { 12 | @discardableResult 13 | public func pasteConfiguration(_ value: UIPasteConfigurationConvertible?) -> PandaChain { 14 | object.pasteConfiguration = unbox(value) 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPencilInteraction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPencilInteraction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 12.1, *) 11 | extension PandaChain where Object: UIPencilInteraction { 12 | @discardableResult 13 | public func delegate(_ value: UIPencilInteractionDelegate?) -> PandaChain { 14 | object.delegate = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func isEnabled(_ value: Bool) -> PandaChain { 20 | object.isEnabled = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPercentDrivenInteractiveTransition.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPercentDrivenInteractiveTransition.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPercentDrivenInteractiveTransition { 11 | @discardableResult 12 | public func completionSpeed(_ value: CGFloat) -> PandaChain { 13 | object.completionSpeed = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func completionCurve(_ value: UIView.AnimationCurve) -> PandaChain { 19 | object.completionCurve = value 20 | return self 21 | } 22 | 23 | @available(iOS 10.0, *) 24 | @discardableResult 25 | public func timingCurve(_ value: UITimingCurveProvider?) -> PandaChain { 26 | object.timingCurve = value 27 | return self 28 | } 29 | 30 | @available(iOS 10.0, *) 31 | @discardableResult 32 | public func wantsInteractiveStart(_ value: Bool) -> PandaChain { 33 | object.wantsInteractiveStart = value 34 | return self 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPickerView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPickerView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPickerView { 11 | @discardableResult 12 | public func dataSource(_ value: UIPickerViewDataSource?) -> PandaChain { 13 | object.dataSource = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func delegate(_ value: UIPickerViewDelegate?) -> PandaChain { 19 | object.delegate = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func showsSelectionIndicator(_ value: Bool) -> PandaChain { 25 | object.showsSelectionIndicator = value 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPinchGestureRecognizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPinchGestureRecognizer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPinchGestureRecognizer { 11 | @discardableResult 12 | public func scale(_ value: CGFloat) -> PandaChain { 13 | object.scale = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPopoverBackgroundView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPopoverBackgroundView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPopoverBackgroundView { 11 | @discardableResult 12 | public func arrowOffset(_ value: CGFloat) -> PandaChain { 13 | object.arrowOffset = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func arrowDirection(_ value: UIPopoverArrowDirection) -> PandaChain { 19 | object.arrowDirection = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPopoverController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPopoverController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS, introduced: 3.2, deprecated: 9.0) 11 | extension PandaChain where Object: UIPopoverController { 12 | @discardableResult 13 | public func delegate(_ value: UIPopoverControllerDelegate?) -> PandaChain { 14 | object.delegate = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func contentViewController(_ value: UIViewControllerConvertible) -> PandaChain { 20 | object.contentViewController = unbox(value) 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func contentSize(_ value: CGSize) -> PandaChain { 26 | object.contentSize = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func passthroughViews(_ value: [UIViewConvertible]?) -> PandaChain { 32 | object.passthroughViews = unboxArray(value) 33 | return self 34 | } 35 | 36 | @discardableResult 37 | public func backgroundColor(_ value: UIColor?) -> PandaChain { 38 | object.backgroundColor = value 39 | return self 40 | } 41 | 42 | @discardableResult 43 | public func layoutMargins(_ value: UIEdgeInsets) -> PandaChain { 44 | object.layoutMargins = value 45 | return self 46 | } 47 | 48 | @discardableResult 49 | public func backgroundViewClass(_ value: AnyClass?) -> PandaChain { 50 | object.backgroundViewClass = value 51 | return self 52 | } 53 | 54 | @discardableResult 55 | public func contentView(_ viewController: UIViewControllerConvertible, animated: Bool) -> PandaChain { 56 | object.setContentView(unbox(viewController), animated: animated) 57 | return self 58 | } 59 | 60 | @discardableResult 61 | public func contentSize(_ size: CGSize, animated: Bool) -> PandaChain { 62 | object.setContentSize(size, animated: animated) 63 | return self 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPopoverPresentationController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPopoverPresentationController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPopoverPresentationController { 11 | @discardableResult 12 | public func delegate(_ value: UIPopoverPresentationControllerDelegate?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func permittedArrowDirections(_ value: UIPopoverArrowDirection) -> PandaChain { 19 | object.permittedArrowDirections = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func sourceView(_ value: UIViewConvertible?) -> PandaChain { 25 | object.sourceView = unbox(value) 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func sourceRect(_ value: CGRect) -> PandaChain { 31 | object.sourceRect = value 32 | return self 33 | } 34 | 35 | @available(iOS 9.0, *) 36 | @discardableResult 37 | public func canOverlapSourceViewRect(_ value: Bool) -> PandaChain { 38 | object.canOverlapSourceViewRect = value 39 | return self 40 | } 41 | 42 | @discardableResult 43 | public func barButtonItem(_ value: UIBarButtonItemConvertible?) -> PandaChain { 44 | object.barButtonItem = unbox(value) 45 | return self 46 | } 47 | 48 | @discardableResult 49 | public func passthroughViews(_ value: [UIViewConvertible]?) -> PandaChain { 50 | object.passthroughViews = unboxArray(value) 51 | return self 52 | } 53 | 54 | @discardableResult 55 | public func backgroundColor(_ value: UIColor?) -> PandaChain { 56 | object.backgroundColor = value 57 | return self 58 | } 59 | 60 | @discardableResult 61 | public func popoverLayoutMargins(_ value: UIEdgeInsets) -> PandaChain { 62 | object.popoverLayoutMargins = value 63 | return self 64 | } 65 | 66 | @discardableResult 67 | public func popoverBackgroundViewClass(_ value: UIPopoverBackgroundViewMethods.Type?) -> PandaChain { 68 | object.popoverBackgroundViewClass = value 69 | return self 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPresentationController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPresentationController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPresentationController { 11 | @discardableResult 12 | public func delegate(_ value: UIAdaptivePresentationControllerDelegate?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func overrideTraitCollection(_ value: UITraitCollection?) -> PandaChain { 19 | object.overrideTraitCollection = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPreviewInteraction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPreviewInteraction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | extension PandaChain where Object: UIPreviewInteraction { 12 | @discardableResult 13 | public func delegate(_ value: UIPreviewInteractionDelegate?) -> PandaChain { 14 | object.delegate = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPrintFormatter.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPrintFormatter.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIPrintFormatterConvertible {} 11 | 12 | extension UIPrintFormatter: UIPrintFormatterConvertible {} 13 | extension PandaChain: UIPrintFormatterConvertible {} 14 | 15 | extension PandaChain where Object: UIPrintFormatter { 16 | @discardableResult 17 | public func maximumContentHeight(_ value: CGFloat) -> PandaChain { 18 | object.maximumContentHeight = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func maximumContentWidth(_ value: CGFloat) -> PandaChain { 24 | object.maximumContentWidth = value 25 | return self 26 | } 27 | 28 | @available(iOS, introduced: 4.2, deprecated: 10.0) 29 | @discardableResult 30 | public func contentInsets(_ value: UIEdgeInsets) -> PandaChain { 31 | object.contentInsets = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func perPageContentInsets(_ value: UIEdgeInsets) -> PandaChain { 37 | object.perPageContentInsets = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func startPage(_ value: Int) -> PandaChain { 43 | object.startPage = value 44 | return self 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPrintInfo.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPrintInfo.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIPrintInfoConvertible {} 11 | 12 | extension UIPrintInfo: UIPrintInfoConvertible {} 13 | extension PandaChain: UIPrintInfoConvertible {} 14 | 15 | extension PandaChain where Object: UIPrintInfo { 16 | @discardableResult 17 | public func printerID(_ value: String?) -> PandaChain { 18 | object.printerID = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func jobName(_ value: String) -> PandaChain { 24 | object.jobName = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func outputType(_ value: UIPrintInfo.OutputType) -> PandaChain { 30 | object.outputType = value 31 | return self 32 | } 33 | 34 | @discardableResult 35 | public func orientation(_ value: UIPrintInfo.Orientation) -> PandaChain { 36 | object.orientation = value 37 | return self 38 | } 39 | 40 | @discardableResult 41 | public func duplex(_ value: UIPrintInfo.Duplex) -> PandaChain { 42 | object.duplex = value 43 | return self 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPrintInteractionController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPrintInteractionController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPrintInteractionController { 11 | @discardableResult 12 | public func printInfo(_ value: UIPrintInfoConvertible?) -> PandaChain { 13 | object.printInfo = unbox(value) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func delegate(_ value: UIPrintInteractionControllerDelegate?) -> PandaChain { 19 | object.delegate = value 20 | return self 21 | } 22 | 23 | @available(iOS, introduced: 4.2, deprecated: 10.0) 24 | @discardableResult 25 | public func showsPageRange(_ value: Bool) -> PandaChain { 26 | object.showsPageRange = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func showsNumberOfCopies(_ value: Bool) -> PandaChain { 32 | object.showsNumberOfCopies = value 33 | return self 34 | } 35 | 36 | @discardableResult 37 | public func showsPaperSelectionForLoadedPapers(_ value: Bool) -> PandaChain { 38 | object.showsPaperSelectionForLoadedPapers = value 39 | return self 40 | } 41 | 42 | @discardableResult 43 | public func printPageRenderer(_ value: UIPrintPageRendererConvertible?) -> PandaChain { 44 | object.printPageRenderer = unbox(value) 45 | return self 46 | } 47 | 48 | @discardableResult 49 | public func printFormatter(_ value: UIPrintFormatterConvertible?) -> PandaChain { 50 | object.printFormatter = unbox(value) 51 | return self 52 | } 53 | 54 | @discardableResult 55 | public func printingItem(_ value: Any?) -> PandaChain { 56 | object.printingItem = value 57 | return self 58 | } 59 | 60 | @discardableResult 61 | public func printingItems(_ value: [Any]?) -> PandaChain { 62 | object.printingItems = value 63 | return self 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPrintPageRenderer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPrintPageRenderer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIPrintPageRendererConvertible {} 11 | 12 | extension UIPrintPageRenderer: UIPrintPageRendererConvertible {} 13 | extension PandaChain: UIPrintPageRendererConvertible {} 14 | 15 | extension PandaChain where Object: UIPrintPageRenderer { 16 | @discardableResult 17 | public func headerHeight(_ value: CGFloat) -> PandaChain { 18 | object.headerHeight = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func footerHeight(_ value: CGFloat) -> PandaChain { 24 | object.footerHeight = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func printFormatters(_ value: [UIPrintFormatterConvertible]?) -> PandaChain { 30 | object.printFormatters = unboxArray(value) 31 | return self 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPrinterPickerController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPrinterPickerController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPrinterPickerController { 11 | @discardableResult 12 | public func delegate(_ value: UIPrinterPickerControllerDelegate?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIProgressView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIProgressView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIProgressView { 11 | @discardableResult 12 | public func progressViewStyle(_ value: UIProgressView.Style) -> PandaChain { 13 | object.progressViewStyle = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func progress(_ value: Float) -> PandaChain { 19 | object.progress = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func progressTintColor(_ value: UIColor?) -> PandaChain { 25 | object.progressTintColor = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func trackTintColor(_ value: UIColor?) -> PandaChain { 31 | object.trackTintColor = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func progressImage(_ value: UIImage?) -> PandaChain { 37 | object.progressImage = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func trackImage(_ value: UIImage?) -> PandaChain { 43 | object.trackImage = value 44 | return self 45 | } 46 | 47 | @available(iOS 9.0, *) 48 | @discardableResult 49 | public func observedProgress(_ value: Progress?) -> PandaChain { 50 | object.observedProgress = value 51 | return self 52 | } 53 | 54 | @discardableResult 55 | public func progress(_ progress: Float, animated: Bool) -> PandaChain { 56 | object.setProgress(progress, animated: animated) 57 | return self 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIPushBehavior.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPushBehavior.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIPushBehavior { 11 | @discardableResult 12 | public func active(_ value: Bool) -> PandaChain { 13 | object.active = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func angle(_ value: CGFloat) -> PandaChain { 19 | object.angle = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func magnitude(_ value: CGFloat) -> PandaChain { 25 | object.magnitude = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func pushDirection(_ value: CGVector) -> PandaChain { 31 | object.pushDirection = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func targetOffsetFromCenter(_ o: UIOffset, for item: UIDynamicItem) -> PandaChain { 37 | object.setTargetOffsetFromCenter(o, for: item) 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func angle(_ angle: CGFloat, magnitude: CGFloat) -> PandaChain { 43 | object.setAngle(angle, magnitude: magnitude) 44 | return self 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIRefreshControl.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIRefreshControl.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIRefreshControlConvertible {} 11 | 12 | extension UIRefreshControl: UIRefreshControlConvertible {} 13 | extension PandaChain: UIRefreshControlConvertible {} 14 | 15 | extension PandaChain where Object: UIRefreshControl { 16 | @discardableResult 17 | public func tintColor(_ value: UIColor!) -> PandaChain { 18 | object.tintColor = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func attributedTitle(_ value: NSAttributedString?) -> PandaChain { 24 | object.attributedTitle = value 25 | return self 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIResponder.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIResponder.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIResponder { 11 | @discardableResult 12 | public func userActivity(_ value: NSUserActivity?) -> PandaChain { 13 | object.userActivity = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIRotationGestureRecognizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIRotationGestureRecognizer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIRotationGestureRecognizer { 11 | @discardableResult 12 | public func rotation(_ value: CGFloat) -> PandaChain { 13 | object.rotation = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIScreen.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIScreen.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UIScreenConvertible {} 11 | 12 | extension UIScreen: UIScreenConvertible {} 13 | extension PandaChain: UIScreenConvertible {} 14 | 15 | extension PandaChain where Object: UIScreen { 16 | @discardableResult 17 | public func currentMode(_ value: UIScreenMode?) -> PandaChain { 18 | object.currentMode = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func overscanCompensation(_ value: UIScreen.OverscanCompensation) -> PandaChain { 24 | object.overscanCompensation = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func brightness(_ value: CGFloat) -> PandaChain { 30 | object.brightness = value 31 | return self 32 | } 33 | 34 | @discardableResult 35 | public func wantsSoftwareDimming(_ value: Bool) -> PandaChain { 36 | object.wantsSoftwareDimming = value 37 | return self 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIScreenEdgePanGestureRecognizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIScreenEdgePanGestureRecognizer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIScreenEdgePanGestureRecognizer { 11 | @discardableResult 12 | public func edges(_ value: UIRectEdge) -> PandaChain { 13 | object.edges = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UISearchController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISearchController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UISearchControllerConvertible {} 11 | 12 | extension UISearchController: UISearchControllerConvertible {} 13 | extension PandaChain: UISearchControllerConvertible {} 14 | 15 | extension PandaChain where Object: UISearchController { 16 | @discardableResult 17 | public func searchResultsUpdater(_ value: UISearchResultsUpdating?) -> PandaChain { 18 | object.searchResultsUpdater = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func isActive(_ value: Bool) -> PandaChain { 24 | object.isActive = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func delegate(_ value: UISearchControllerDelegate?) -> PandaChain { 30 | object.delegate = value 31 | return self 32 | } 33 | 34 | @discardableResult 35 | public func dimsBackgroundDuringPresentation(_ value: Bool) -> PandaChain { 36 | object.dimsBackgroundDuringPresentation = value 37 | return self 38 | } 39 | 40 | @available(iOS 9.1, *) 41 | @discardableResult 42 | public func obscuresBackgroundDuringPresentation(_ value: Bool) -> PandaChain { 43 | object.obscuresBackgroundDuringPresentation = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func hidesNavigationBarDuringPresentation(_ value: Bool) -> PandaChain { 49 | object.hidesNavigationBarDuringPresentation = value 50 | return self 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UISimpleTextPrintFormatter.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISimpleTextPrintFormatter.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UISimpleTextPrintFormatter { 11 | @discardableResult 12 | public func text(_ value: String?) -> PandaChain { 13 | object.text = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func attributedText(_ value: NSAttributedString?) -> PandaChain { 19 | object.attributedText = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func color(_ value: UIColor?) -> PandaChain { 25 | object.color = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func textAlignment(_ value: NSTextAlignment) -> PandaChain { 31 | object.textAlignment = value 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UISnapBehavior.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISnapBehavior.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UISnapBehavior { 11 | @available(iOS 9.0, *) 12 | @discardableResult 13 | public func snapPoint(_ value: CGPoint) -> PandaChain { 14 | object.snapPoint = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func damping(_ value: CGFloat) -> PandaChain { 20 | object.damping = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UISplitViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISplitViewController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UISplitViewController { 11 | @discardableResult 12 | public func viewControllers(_ value: [UIViewControllerConvertible]) -> PandaChain { 13 | object.viewControllers = unboxArray(value) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func delegate(_ value: UISplitViewControllerDelegate?) -> PandaChain { 19 | object.delegate = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func presentsWithGesture(_ value: Bool) -> PandaChain { 25 | object.presentsWithGesture = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func preferredDisplayMode(_ value: UISplitViewController.DisplayMode) -> PandaChain { 31 | object.preferredDisplayMode = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func preferredPrimaryColumnWidthFraction(_ value: CGFloat) -> PandaChain { 37 | object.preferredPrimaryColumnWidthFraction = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func minimumPrimaryColumnWidth(_ value: CGFloat) -> PandaChain { 43 | object.minimumPrimaryColumnWidth = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func maximumPrimaryColumnWidth(_ value: CGFloat) -> PandaChain { 49 | object.maximumPrimaryColumnWidth = value 50 | return self 51 | } 52 | 53 | @available(iOS 11.0, *) 54 | @discardableResult 55 | public func primaryEdge(_ value: UISplitViewController.PrimaryEdge) -> PandaChain { 56 | object.primaryEdge = value 57 | return self 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UISpringLoadedInteractionContext.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISpringLoadedInteractionContext.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UISpringLoadedInteractionContext { 12 | @discardableResult 13 | public func targetView(_ value: UIViewConvertible?) -> PandaChain { 14 | object.targetView = unbox(value) 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func targetItem(_ value: Any?) -> PandaChain { 20 | object.targetItem = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UISpringLoadedInteractionSupporting.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISpringLoadedInteractionSupporting.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UISpringLoadedInteractionSupporting { 12 | @available(iOS 11.0, *) 13 | @discardableResult 14 | public func isSpringLoaded(_ value: Bool) -> PandaChain { 15 | object.isSpringLoaded = value 16 | return self 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIStackView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIStackView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 9.0, *) 11 | extension PandaChain where Object: UIStackView { 12 | @discardableResult 13 | public func axis(_ value: NSLayoutConstraint.Axis) -> PandaChain { 14 | object.axis = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func distribution(_ value: UIStackView.Distribution) -> PandaChain { 20 | object.distribution = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func alignment(_ value: UIStackView.Alignment) -> PandaChain { 26 | object.alignment = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func spacing(_ value: CGFloat) -> PandaChain { 32 | object.spacing = value 33 | return self 34 | } 35 | 36 | @discardableResult 37 | public func isBaselineRelativeArrangement(_ value: Bool) -> PandaChain { 38 | object.isBaselineRelativeArrangement = value 39 | return self 40 | } 41 | 42 | @discardableResult 43 | public func isLayoutMarginsRelativeArrangement(_ value: Bool) -> PandaChain { 44 | object.isLayoutMarginsRelativeArrangement = value 45 | return self 46 | } 47 | 48 | @available(iOS 11.0, *) 49 | @discardableResult 50 | public func customSpacing(_ spacing: CGFloat, after arrangedSubview: UIView) -> PandaChain { 51 | object.setCustomSpacing(spacing, after: arrangedSubview) 52 | return self 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UISwipeActionsConfiguration.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISwipeActionsConfiguration.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UISwipeActionsConfiguration { 12 | @discardableResult 13 | public func performsFirstActionWithFullSwipe(_ value: Bool) -> PandaChain { 14 | object.performsFirstActionWithFullSwipe = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UISwipeGestureRecognizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISwipeGestureRecognizer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UISwipeGestureRecognizer { 11 | @discardableResult 12 | public func numberOfTouchesRequired(_ value: Int) -> PandaChain { 13 | object.numberOfTouchesRequired = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func direction(_ value: UISwipeGestureRecognizer.Direction) -> PandaChain { 19 | object.direction = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UISwitch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISwitch.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UISwitch { 11 | @discardableResult 12 | public func onTintColor(_ value: UIColor?) -> PandaChain { 13 | object.onTintColor = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func tintColor(_ value: UIColor!) -> PandaChain { 19 | object.tintColor = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func thumbTintColor(_ value: UIColor?) -> PandaChain { 25 | object.thumbTintColor = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func onImage(_ value: UIImage?) -> PandaChain { 31 | object.onImage = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func offImage(_ value: UIImage?) -> PandaChain { 37 | object.offImage = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func isOn(_ value: Bool) -> PandaChain { 43 | object.isOn = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func on(_ on: Bool, animated: Bool) -> PandaChain { 49 | object.setOn(on, animated: animated) 50 | return self 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITabBar.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITabBar.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UITabBar { 11 | @discardableResult 12 | public func delegate(_ value: UITabBarDelegate?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func items(_ value: [UITabBarItemConvertible]?) -> PandaChain { 19 | object.items = unboxArray(value) 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func selectedItem(_ value: UITabBarItemConvertible?) -> PandaChain { 25 | object.selectedItem = unbox(value) 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func tintColor(_ value: UIColor!) -> PandaChain { 31 | object.tintColor = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func barTintColor(_ value: UIColor?) -> PandaChain { 37 | object.barTintColor = value 38 | return self 39 | } 40 | 41 | @available(iOS 10.0, *) 42 | @discardableResult 43 | public func unselectedItemTintColor(_ value: UIColor?) -> PandaChain { 44 | object.unselectedItemTintColor = value 45 | return self 46 | } 47 | 48 | @discardableResult 49 | public func backgroundImage(_ value: UIImage?) -> PandaChain { 50 | object.backgroundImage = value 51 | return self 52 | } 53 | 54 | @discardableResult 55 | public func selectionIndicatorImage(_ value: UIImage?) -> PandaChain { 56 | object.selectionIndicatorImage = value 57 | return self 58 | } 59 | 60 | @discardableResult 61 | public func shadowImage(_ value: UIImage?) -> PandaChain { 62 | object.shadowImage = value 63 | return self 64 | } 65 | 66 | @discardableResult 67 | public func itemPositioning(_ value: UITabBar.ItemPositioning) -> PandaChain { 68 | object.itemPositioning = value 69 | return self 70 | } 71 | 72 | @discardableResult 73 | public func itemWidth(_ value: CGFloat) -> PandaChain { 74 | object.itemWidth = value 75 | return self 76 | } 77 | 78 | @discardableResult 79 | public func itemSpacing(_ value: CGFloat) -> PandaChain { 80 | object.itemSpacing = value 81 | return self 82 | } 83 | 84 | @discardableResult 85 | public func barStyle(_ value: UIBarStyle) -> PandaChain { 86 | object.barStyle = value 87 | return self 88 | } 89 | 90 | @discardableResult 91 | public func isTranslucent(_ value: Bool) -> PandaChain { 92 | object.isTranslucent = value 93 | return self 94 | } 95 | 96 | @discardableResult 97 | public func items(_ items: [UITabBarItemConvertible]?, animated: Bool) -> PandaChain { 98 | object.setItems(unboxArray(items), animated: animated) 99 | return self 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITabBarController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITabBarController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UITabBarController { 11 | @discardableResult 12 | public func viewControllers(_ value: [UIViewControllerConvertible]?) -> PandaChain { 13 | object.viewControllers = unboxArray(value) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func selectedViewController(_ value: UIViewControllerConvertible?) -> PandaChain { 19 | object.selectedViewController = unbox(value) 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func selectedIndex(_ value: Int) -> PandaChain { 25 | object.selectedIndex = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func customizableViewControllers(_ value: [UIViewControllerConvertible]?) -> PandaChain { 31 | object.customizableViewControllers = unboxArray(value) 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func delegate(_ value: UITabBarControllerDelegate?) -> PandaChain { 37 | object.delegate = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func viewControllers(_ viewControllers: [UIViewControllerConvertible]?, animated: Bool) -> PandaChain { 43 | object.setViewControllers(unboxArray(viewControllers), animated: animated) 44 | return self 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITabBarItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITabBarItem.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol UITabBarItemConvertible {} 11 | 12 | extension UITabBarItem: UITabBarItemConvertible {} 13 | extension PandaChain: UITabBarItemConvertible {} 14 | 15 | extension PandaChain where Object: UITabBarItem { 16 | @discardableResult 17 | public func selectedImage(_ value: UIImage?) -> PandaChain { 18 | object.selectedImage = value 19 | return self 20 | } 21 | 22 | @discardableResult 23 | public func badgeValue(_ value: String?) -> PandaChain { 24 | object.badgeValue = value 25 | return self 26 | } 27 | 28 | @discardableResult 29 | public func titlePositionAdjustment(_ value: UIOffset) -> PandaChain { 30 | object.titlePositionAdjustment = value 31 | return self 32 | } 33 | 34 | @available(iOS 10.0, *) 35 | @discardableResult 36 | public func badgeColor(_ value: UIColor?) -> PandaChain { 37 | object.badgeColor = value 38 | return self 39 | } 40 | 41 | @available(iOS 10.0, *) 42 | @discardableResult 43 | public func badgeTextAttributes(_ textAttributes: [NSAttributedString.Key : Any]?, for state: UIControl.State) -> PandaChain { 44 | object.setBadgeTextAttributes(textAttributes, for: state) 45 | return self 46 | } 47 | 48 | @available(iOS 10.0, *) 49 | @discardableResult 50 | public func badgeTextAttributes( 51 | _ normal: [NSAttributedString.Key : Any], 52 | highlighted: [NSAttributedString.Key : Any]? = nil, 53 | selected: [NSAttributedString.Key : Any]? = nil, 54 | disabled: [NSAttributedString.Key : Any]? = nil 55 | ) -> PandaChain { 56 | return forControlState( 57 | normal: normal, 58 | highlighted: highlighted, 59 | selected: selected, 60 | disabled: disabled, 61 | setter: object.setBadgeTextAttributes 62 | ) 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITableViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITableViewController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UITableViewController { 11 | @discardableResult 12 | public func tableView(_ value: UITableViewConvertible!) -> PandaChain { 13 | object.tableView = unbox(value) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func clearsSelectionOnViewWillAppear(_ value: Bool) -> PandaChain { 19 | object.clearsSelectionOnViewWillAppear = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func refreshControl(_ value: UIRefreshControlConvertible?) -> PandaChain { 25 | object.refreshControl = unbox(value) 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITableViewHeaderFooterView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITableViewHeaderFooterView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UITableViewHeaderFooterView { 11 | @discardableResult 12 | public func backgroundView(_ value: UIViewConvertible?) -> PandaChain { 13 | object.backgroundView = unbox(value) 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITableViewRowAction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITableViewRowAction.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UITableViewRowAction { 11 | @discardableResult 12 | public func title(_ value: String?) -> PandaChain { 13 | object.title = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func backgroundColor(_ value: UIColor?) -> PandaChain { 19 | object.backgroundColor = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func backgroundEffect(_ value: UIVisualEffect?) -> PandaChain { 25 | object.backgroundEffect = value 26 | return self 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITapGestureRecognizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITapGestureRecognizer.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UITapGestureRecognizer { 11 | @discardableResult 12 | public func numberOfTapsRequired(_ value: Int) -> PandaChain { 13 | object.numberOfTapsRequired = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func numberOfTouchesRequired(_ value: Int) -> PandaChain { 19 | object.numberOfTouchesRequired = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITextChecker.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextChecker.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UITextChecker { 11 | @discardableResult 12 | public func ignoredWords(_ value: [String]?) -> PandaChain { 13 | object.ignoredWords = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITextDraggable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextDraggable.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UITextDraggable { 12 | @discardableResult 13 | public func textDragDelegate(_ value: UITextDragDelegate?) -> PandaChain { 14 | object.textDragDelegate = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func textDragOptions(_ value: UITextDragOptions) -> PandaChain { 20 | object.textDragOptions = value 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITextDropProposal.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextDropProposal.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UITextDropProposal { 12 | @discardableResult 13 | public func dropAction(_ value: UITextDropProposal.Action) -> PandaChain { 14 | object.dropAction = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func dropProgressMode(_ value: UITextDropProposal.ProgressMode) -> PandaChain { 20 | object.dropProgressMode = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func useFastSameViewOperations(_ value: Bool) -> PandaChain { 26 | object.useFastSameViewOperations = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func dropPerformer(_ value: UITextDropProposal.Performer) -> PandaChain { 32 | object.dropPerformer = value 33 | return self 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITextDroppable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextDroppable.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UITextDroppable { 12 | @discardableResult 13 | public func textDropDelegate(_ value: UITextDropDelegate?) -> PandaChain { 14 | object.textDropDelegate = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITextInput.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextInput.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UITextInput { 11 | @discardableResult 12 | public func selectedTextRange(_ value: UITextRange?) -> PandaChain { 13 | object.selectedTextRange = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func markedTextStyle(_ value: [NSAttributedString.Key : Any]?) -> PandaChain { 19 | object.markedTextStyle = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func inputDelegate(_ value: UITextInputDelegate?) -> PandaChain { 25 | object.inputDelegate = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func markedText(_ markedText: String?, selectedRange: NSRange) -> PandaChain { 31 | object.setMarkedText(markedText, selectedRange: selectedRange) 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func baseWritingDirection(_ writingDirection: UITextWritingDirection, for range: UITextRange) -> PandaChain { 37 | object.setBaseWritingDirection(writingDirection, for: range) 38 | return self 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITextInputAssistantItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextInputAssistantItem.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 9.0, *) 11 | extension PandaChain where Object: UITextInputAssistantItem { 12 | @discardableResult 13 | public func allowsHidingShortcuts(_ value: Bool) -> PandaChain { 14 | object.allowsHidingShortcuts = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func leadingBarButtonGroups(_ value: [UIBarButtonItemGroupConvertible]) -> PandaChain { 20 | object.leadingBarButtonGroups = unboxArray(value) 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func trailingBarButtonGroups(_ value: [UIBarButtonItemGroupConvertible]) -> PandaChain { 26 | object.trailingBarButtonGroups = unboxArray(value) 27 | return self 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITextPasteConfigurationSupporting.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextPasteConfigurationSupporting.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UITextPasteConfigurationSupporting { 12 | @discardableResult 13 | public func pasteDelegate(_ value: UITextPasteDelegate?) -> PandaChain { 14 | object.pasteDelegate = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UITextPasteItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextPasteItem.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 11.0, *) 11 | extension PandaChain where Object: UITextPasteItem { 12 | @discardableResult 13 | public func result(string: String) -> PandaChain { 14 | object.setResult(string: string) 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func result(attributedString string: NSAttributedString) -> PandaChain { 20 | object.setResult(attributedString: string) 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func result(attachment textAttachment: NSTextAttachmentConvertible) -> PandaChain { 26 | object.setResult(attachment: unbox(textAttachment)) 27 | return self 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIToolbar.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIToolbar.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIToolbar { 11 | @discardableResult 12 | public func barStyle(_ value: UIBarStyle) -> PandaChain { 13 | object.barStyle = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func items(_ value: [UIBarButtonItemConvertible]?) -> PandaChain { 19 | object.items = unboxArray(value) 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func isTranslucent(_ value: Bool) -> PandaChain { 25 | object.isTranslucent = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func tintColor(_ value: UIColor!) -> PandaChain { 31 | object.tintColor = value 32 | return self 33 | } 34 | 35 | @discardableResult 36 | public func barTintColor(_ value: UIColor?) -> PandaChain { 37 | object.barTintColor = value 38 | return self 39 | } 40 | 41 | @discardableResult 42 | public func delegate(_ value: UIToolbarDelegate?) -> PandaChain { 43 | object.delegate = value 44 | return self 45 | } 46 | 47 | @discardableResult 48 | public func items(_ items: [UIBarButtonItemConvertible]?, animated: Bool) -> PandaChain { 49 | object.setItems(unboxArray(items), animated: animated) 50 | return self 51 | } 52 | 53 | @discardableResult 54 | public func backgroundImage(_ backgroundImage: UIImage?, forToolbarPosition topOrBottom: UIBarPosition, barMetrics: UIBarMetrics) -> PandaChain { 55 | object.setBackgroundImage(backgroundImage, forToolbarPosition: topOrBottom, barMetrics: barMetrics) 56 | return self 57 | } 58 | 59 | @discardableResult 60 | public func shadowImage(_ shadowImage: UIImage?, forToolbarPosition topOrBottom: UIBarPosition) -> PandaChain { 61 | object.setShadowImage(shadowImage, forToolbarPosition: topOrBottom) 62 | return self 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIVideoEditorController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIVideoEditorController.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIVideoEditorController { 11 | @discardableResult 12 | public func delegate(_ value: (UINavigationControllerDelegate & UIVideoEditorControllerDelegate)?) -> PandaChain { 13 | object.delegate = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func videoPath(_ value: String) -> PandaChain { 19 | object.videoPath = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func videoMaximumDuration(_ value: TimeInterval) -> PandaChain { 25 | object.videoMaximumDuration = value 26 | return self 27 | } 28 | 29 | @discardableResult 30 | public func videoQuality(_ value: UIImagePickerController.QualityType) -> PandaChain { 31 | object.videoQuality = value 32 | return self 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIViewAnimating.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewAnimating.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIViewAnimating { 11 | @discardableResult 12 | public func isReversed(_ value: Bool) -> PandaChain { 13 | object.isReversed = value 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func fractionComplete(_ value: CGFloat) -> PandaChain { 19 | object.fractionComplete = value 20 | return self 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIViewControllerPreviewing.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewControllerPreviewing.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIViewControllerPreviewing { 11 | @available(iOS 9.0, *) 12 | @discardableResult 13 | public func sourceRect(_ value: CGRect) -> PandaChain { 14 | object.sourceRect = value 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIViewPropertyAnimator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewPropertyAnimator.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS 10.0, *) 11 | extension PandaChain where Object: UIViewPropertyAnimator { 12 | @discardableResult 13 | public func isUserInteractionEnabled(_ value: Bool) -> PandaChain { 14 | object.isUserInteractionEnabled = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func isManualHitTestingEnabled(_ value: Bool) -> PandaChain { 20 | object.isManualHitTestingEnabled = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func isInterruptible(_ value: Bool) -> PandaChain { 26 | object.isInterruptible = value 27 | return self 28 | } 29 | 30 | @available(iOS 11.0, *) 31 | @discardableResult 32 | public func scrubsLinearly(_ value: Bool) -> PandaChain { 33 | object.scrubsLinearly = value 34 | return self 35 | } 36 | 37 | @available(iOS 11.0, *) 38 | @discardableResult 39 | public func pausesOnCompletion(_ value: Bool) -> PandaChain { 40 | object.pausesOnCompletion = value 41 | return self 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIVisualEffectView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIVisualEffectView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIVisualEffectView { 11 | @discardableResult 12 | public func effect(_ value: UIVisualEffect?) -> PandaChain { 13 | object.effect = value 14 | return self 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIWebView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIWebView.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | @available(iOS, introduced: 2.0, deprecated: 12.0) 11 | extension PandaChain where Object: UIWebView { 12 | @discardableResult 13 | public func delegate(_ value: UIWebViewDelegate?) -> PandaChain { 14 | object.delegate = value 15 | return self 16 | } 17 | 18 | @discardableResult 19 | public func scalesPageToFit(_ value: Bool) -> PandaChain { 20 | object.scalesPageToFit = value 21 | return self 22 | } 23 | 24 | @discardableResult 25 | public func dataDetectorTypes(_ value: UIDataDetectorTypes) -> PandaChain { 26 | object.dataDetectorTypes = value 27 | return self 28 | } 29 | 30 | @discardableResult 31 | public func allowsInlineMediaPlayback(_ value: Bool) -> PandaChain { 32 | object.allowsInlineMediaPlayback = value 33 | return self 34 | } 35 | 36 | @discardableResult 37 | public func mediaPlaybackRequiresUserAction(_ value: Bool) -> PandaChain { 38 | object.mediaPlaybackRequiresUserAction = value 39 | return self 40 | } 41 | 42 | @discardableResult 43 | public func mediaPlaybackAllowsAirPlay(_ value: Bool) -> PandaChain { 44 | object.mediaPlaybackAllowsAirPlay = value 45 | return self 46 | } 47 | 48 | @discardableResult 49 | public func suppressesIncrementalRendering(_ value: Bool) -> PandaChain { 50 | object.suppressesIncrementalRendering = value 51 | return self 52 | } 53 | 54 | @discardableResult 55 | public func keyboardDisplayRequiresUserAction(_ value: Bool) -> PandaChain { 56 | object.keyboardDisplayRequiresUserAction = value 57 | return self 58 | } 59 | 60 | @discardableResult 61 | public func paginationMode(_ value: UIWebView.PaginationMode) -> PandaChain { 62 | object.paginationMode = value 63 | return self 64 | } 65 | 66 | @discardableResult 67 | public func paginationBreakingMode(_ value: UIWebView.PaginationBreakingMode) -> PandaChain { 68 | object.paginationBreakingMode = value 69 | return self 70 | } 71 | 72 | @discardableResult 73 | public func pageLength(_ value: CGFloat) -> PandaChain { 74 | object.pageLength = value 75 | return self 76 | } 77 | 78 | @discardableResult 79 | public func gapBetweenPages(_ value: CGFloat) -> PandaChain { 80 | object.gapBetweenPages = value 81 | return self 82 | } 83 | 84 | @available(iOS 9.0, *) 85 | @discardableResult 86 | public func allowsPictureInPictureMediaPlayback(_ value: Bool) -> PandaChain { 87 | object.allowsPictureInPictureMediaPlayback = value 88 | return self 89 | } 90 | 91 | @available(iOS 9.0, *) 92 | @discardableResult 93 | public func allowsLinkPreview(_ value: Bool) -> PandaChain { 94 | object.allowsLinkPreview = value 95 | return self 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /Sources/Properties/UIKit/UIWindow.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIWindow.swift 3 | // Panda 4 | // 5 | // Baby of PandaMom. DO NOT TOUCH. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PandaChain where Object: UIWindow { 11 | @discardableResult 12 | public func screen(_ value: UIScreenConvertible) -> PandaChain { 13 | object.screen = unbox(value) 14 | return self 15 | } 16 | 17 | @discardableResult 18 | public func windowLevel(_ value: UIWindow.Level) -> PandaChain { 19 | object.windowLevel = value 20 | return self 21 | } 22 | 23 | @discardableResult 24 | public func rootViewController(_ value: UIViewControllerConvertible?) -> PandaChain { 25 | object.rootViewController = unbox(value) 26 | return self 27 | } 28 | } 29 | --------------------------------------------------------------------------------