Skip to content

Commit

Permalink
Use original names
Browse files Browse the repository at this point in the history
  • Loading branch information
wordlessj committed Apr 6, 2019
1 parent 1135e89 commit 5927db3
Show file tree
Hide file tree
Showing 135 changed files with 587 additions and 2,789 deletions.
31 changes: 22 additions & 9 deletions Panda.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
3B4080971F20800700F810BE /* UIDocumentMenuViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B4080421F207F8600F810BE /* UIDocumentMenuViewController.swift */; };
3B4080981F20800700F810BE /* UIDocumentPickerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B4080481F207F8700F810BE /* UIDocumentPickerViewController.swift */; };
3B4080991F20800700F810BE /* UIDynamicAnimator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B4080441F207F8600F810BE /* UIDynamicAnimator.swift */; };
3B40809A1F20800700F810BE /* UIDynamicBehavior.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B4080461F207F8700F810BE /* UIDynamicBehavior.swift */; };
3B40809B1F20800700F810BE /* UIDynamicItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B4080411F207F8600F810BE /* UIDynamicItem.swift */; };
3B40809C1F20800700F810BE /* UIDynamicItemBehavior.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B40804A1F207F8700F810BE /* UIDynamicItemBehavior.swift */; };
3B40809D1F20800700F810BE /* UIFieldBehavior.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B4080401F207F8600F810BE /* UIFieldBehavior.swift */; };
Expand Down Expand Up @@ -181,12 +180,15 @@
3B4DEAEA1F318710007E03CB /* UITextPasteItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B4DEAE81F31870F007E03CB /* UITextPasteItem.swift */; };
3B4DEAEB1F318710007E03CB /* UITextPasteConfigurationSupporting.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B4DEAE91F31870F007E03CB /* UITextPasteConfigurationSupporting.swift */; };
3B4DEAED1F31914C007E03CB /* CAEAGLLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B4DEAEC1F31914C007E03CB /* CAEAGLLayer.swift */; };
3B51F6B121C5088400E21654 /* NSMutableAttributedString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B51F6AF21C5088300E21654 /* NSMutableAttributedString.swift */; };
3B51F6B221C5088400E21654 /* UIPencilInteraction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B51F6B021C5088300E21654 /* UIPencilInteraction.swift */; };
3B7C3D641F2DCD0100BCB492 /* Transform.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B7C3D631F2DCD0100BCB492 /* Transform.swift */; };
3B7C3D681F2DE25600BCB492 /* SourceDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B7C3D671F2DE25600BCB492 /* SourceDelegate.swift */; };
3B7C3D6A1F2DED0400BCB492 /* UIAlertControllerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B7C3D691F2DED0400BCB492 /* UIAlertControllerExtensions.swift */; };
3B7C3D6C1F2EFA8400BCB492 /* UIGestureRecognizerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B7C3D6B1F2EFA8400BCB492 /* UIGestureRecognizerExtensions.swift */; };
3B7C3D6E1F2F575E00BCB492 /* UILabelExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B7C3D6D1F2F575D00BCB492 /* UILabelExtensions.swift */; };
3B89336E1F25D8480037F115 /* Add.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B89336D1F25D8480037F115 /* Add.swift */; };
3B9EF1812169F012007BC75D /* UIFocusItemScrollableContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B9EF1802169F012007BC75D /* UIFocusItemScrollableContainer.swift */; };
3BB2EE8F1DC99F0E001D7AAB /* UICollectionViewExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BB2EE8E1DC99F0E001D7AAB /* UICollectionViewExtensions.swift */; };
3BB2EE911DC9B65B001D7AAB /* UICollectionViewFlowLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BB2EE901DC9B65B001D7AAB /* UICollectionViewFlowLayout.swift */; };
3BB2EE931DC9BF09001D7AAB /* UIStackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BB2EE921DC9BF09001D7AAB /* UIStackView.swift */; };
Expand Down Expand Up @@ -301,7 +303,6 @@
3B4080431F207F8600F810BE /* UIDevice.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDevice.swift; sourceTree = "<group>"; };
3B4080441F207F8600F810BE /* UIDynamicAnimator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDynamicAnimator.swift; sourceTree = "<group>"; };
3B4080451F207F8600F810BE /* UIFocusGuide.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIFocusGuide.swift; sourceTree = "<group>"; };
3B4080461F207F8700F810BE /* UIDynamicBehavior.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDynamicBehavior.swift; sourceTree = "<group>"; };
3B4080471F207F8700F810BE /* UIDatePicker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDatePicker.swift; sourceTree = "<group>"; };
3B4080481F207F8700F810BE /* UIDocumentPickerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDocumentPickerViewController.swift; sourceTree = "<group>"; };
3B4080491F207F8700F810BE /* UIDocumentInteractionController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDocumentInteractionController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -382,12 +383,15 @@
3B4DEAE81F31870F007E03CB /* UITextPasteItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UITextPasteItem.swift; sourceTree = "<group>"; };
3B4DEAE91F31870F007E03CB /* UITextPasteConfigurationSupporting.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UITextPasteConfigurationSupporting.swift; sourceTree = "<group>"; };
3B4DEAEC1F31914C007E03CB /* CAEAGLLayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CAEAGLLayer.swift; sourceTree = "<group>"; };
3B51F6AF21C5088300E21654 /* NSMutableAttributedString.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSMutableAttributedString.swift; sourceTree = "<group>"; };
3B51F6B021C5088300E21654 /* UIPencilInteraction.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIPencilInteraction.swift; sourceTree = "<group>"; };
3B7C3D631F2DCD0100BCB492 /* Transform.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Transform.swift; sourceTree = "<group>"; };
3B7C3D671F2DE25600BCB492 /* SourceDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SourceDelegate.swift; sourceTree = "<group>"; };
3B7C3D691F2DED0400BCB492 /* UIAlertControllerExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIAlertControllerExtensions.swift; sourceTree = "<group>"; };
3B7C3D6B1F2EFA8400BCB492 /* UIGestureRecognizerExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIGestureRecognizerExtensions.swift; sourceTree = "<group>"; };
3B7C3D6D1F2F575D00BCB492 /* UILabelExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UILabelExtensions.swift; sourceTree = "<group>"; };
3B89336D1F25D8480037F115 /* Add.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Add.swift; sourceTree = "<group>"; };
3B9EF1802169F012007BC75D /* UIFocusItemScrollableContainer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIFocusItemScrollableContainer.swift; sourceTree = "<group>"; };
3BB2EE8E1DC99F0E001D7AAB /* UICollectionViewExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UICollectionViewExtensions.swift; sourceTree = "<group>"; };
3BB2EE901DC9B65B001D7AAB /* UICollectionViewFlowLayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UICollectionViewFlowLayout.swift; sourceTree = "<group>"; };
3BB2EE921DC9BF09001D7AAB /* UIStackView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIStackView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -423,6 +427,7 @@
3B4DEAC41F317CC2007E03CB /* NSItemProvider.swift */,
3B40805B1F207FE700F810BE /* NSLayoutConstraint.swift */,
3B40806D1F207FE800F810BE /* NSLayoutManager.swift */,
3B51F6AF21C5088300E21654 /* NSMutableAttributedString.swift */,
3B4080631F207FE800F810BE /* NSMutableParagraphStyle.swift */,
3B40806A1F207FE800F810BE /* NSObject.swift */,
3B4080541F207FE700F810BE /* NSShadow.swift */,
Expand Down Expand Up @@ -480,11 +485,11 @@
3B4DEACE1F3185F3007E03CB /* UIDropProposal.swift */,
3B4DEACB1F3185F2007E03CB /* UIDropSession.swift */,
3B4080441F207F8600F810BE /* UIDynamicAnimator.swift */,
3B4080461F207F8700F810BE /* UIDynamicBehavior.swift */,
3B4080411F207F8600F810BE /* UIDynamicItem.swift */,
3B40804A1F207F8700F810BE /* UIDynamicItemBehavior.swift */,
3B4080401F207F8600F810BE /* UIFieldBehavior.swift */,
3B4080451F207F8600F810BE /* UIFocusGuide.swift */,
3B9EF1802169F012007BC75D /* UIFocusItemScrollableContainer.swift */,
3BF5F3501DC8DFF20037C598 /* UIGestureRecognizer.swift */,
3B40803C1F207F6C00F810BE /* UIGraphicsImageRendererFormat.swift */,
3BE220D51F232716005D81E9 /* UIGraphicsPDFRendererContext.swift */,
Expand Down Expand Up @@ -517,6 +522,7 @@
3B4080281F207EE600F810BE /* UIPasteboard.swift */,
3B4DEAD91F318665007E03CB /* UIPasteConfiguration.swift */,
3B4DEAD81F318665007E03CB /* UIPasteConfigurationSupporting.swift */,
3B51F6B021C5088300E21654 /* UIPencilInteraction.swift */,
3B40801D1F207EE500F810BE /* UIPercentDrivenInteractiveTransition.swift */,
3B4080321F207EE600F810BE /* UIPickerView.swift */,
3B4080191F207EE500F810BE /* UIPinchGestureRecognizer.swift */,
Expand Down Expand Up @@ -723,22 +729,23 @@
3B2B8FFF1DC70A3E00B4E92F /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0900;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = Javier;
TargetAttributes = {
3B2B90071DC70A3E00B4E92F = {
CreatedOnToolsVersion = 8.1;
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
ProvisioningStyle = Manual;
};
};
};
buildConfigurationList = 3B2B90021DC70A3E00B4E92F /* Build configuration list for PBXProject "Panda" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 3B2B8FFE1DC70A3E00B4E92F;
productRefGroup = 3B2B90091DC70A3E00B4E92F /* Products */;
Expand Down Expand Up @@ -815,6 +822,7 @@
3B4080831F20800700F810BE /* UIAlertView.swift in Sources */,
3B4080841F20800700F810BE /* UIApplication.swift in Sources */,
3B4080851F20800700F810BE /* UIAttachmentBehavior.swift in Sources */,
3B9EF1812169F012007BC75D /* UIFocusItemScrollableContainer.swift in Sources */,
3B4080861F20800700F810BE /* UIBarButtonItem.swift in Sources */,
3B4DEAD51F3185F3007E03CB /* UIDropProposal.swift in Sources */,
3B4080871F20800700F810BE /* UIBarButtonItemGroup.swift in Sources */,
Expand Down Expand Up @@ -842,9 +850,9 @@
3B4080991F20800700F810BE /* UIDynamicAnimator.swift in Sources */,
3BDCEAA71F25BB390098324A /* CALayerExtensions.swift in Sources */,
3B4DEAC51F317CC2007E03CB /* NSItemProvider.swift in Sources */,
3B40809A1F20800700F810BE /* UIDynamicBehavior.swift in Sources */,
3B40809B1F20800700F810BE /* UIDynamicItem.swift in Sources */,
3B40809C1F20800700F810BE /* UIDynamicItemBehavior.swift in Sources */,
3B51F6B121C5088400E21654 /* NSMutableAttributedString.swift in Sources */,
3B40809D1F20800700F810BE /* UIFieldBehavior.swift in Sources */,
3B40809E1F20800700F810BE /* UIFocusGuide.swift in Sources */,
3B40809F1F20800700F810BE /* UIGraphicsImageRendererFormat.swift in Sources */,
Expand All @@ -866,6 +874,7 @@
3B4080AD1F20800700F810BE /* UIMenuItem.swift in Sources */,
3B4080AE1F20800700F810BE /* UIMotionEffectGroup.swift in Sources */,
3B4080AF1F20800700F810BE /* UIMutableApplicationShortcutItem.swift in Sources */,
3B51F6B221C5088400E21654 /* UIPencilInteraction.swift in Sources */,
3B4080B01F20800700F810BE /* UIMutableUserNotificationAction.swift in Sources */,
3B4080B11F20800700F810BE /* UIMutableUserNotificationCategory.swift in Sources */,
3B4080B21F20800700F810BE /* UINavigationBar.swift in Sources */,
Expand Down Expand Up @@ -979,13 +988,15 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand Down Expand Up @@ -1039,13 +1050,15 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand Down Expand Up @@ -1098,7 +1111,7 @@
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -1120,7 +1133,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
4 changes: 1 addition & 3 deletions Panda.xcodeproj/xcshareddata/xcschemes/Panda.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0900"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,7 +26,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
Expand All @@ -37,7 +36,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Basics/Actions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ extension PandaChain where Object: UIControl {
/// - events: Defaults to `touchUpInside`.
/// - action: If `nil`, the action associated with `events` will be removed.
@discardableResult
public func action(for events: UIControlEvents = .touchUpInside, action: ((Object) -> ())?) -> PandaChain {
public func action(for events: UIControl.Event = .touchUpInside, action: ((Object) -> ())?) -> PandaChain {
if let box = object.actionBoxes[events.rawValue] {
object.removeTarget(box, action: ActionBox.selector, for: events)
object.actionBoxes[events.rawValue] = nil
Expand Down
4 changes: 2 additions & 2 deletions Sources/Basics/Add.swift
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ extension UIViewController: ItemAdding, ItemRemoving {
let unboxedItem: Any = unbox(item)

switch unboxedItem {
case let controller as UIViewController: addChildViewController(controller)
case let controller as UIViewController: addChild(controller)
default:
if let controller = self as? UIAlertController, let action = unboxedItem as? UIAlertAction {
controller.addAction(action)
Expand All @@ -309,7 +309,7 @@ extension UIViewController: ItemAdding, ItemRemoving {
let unboxedItem: Any = unbox(item)

switch unboxedItem {
case let controller as UIViewController: controller.removeFromParentViewController()
case let controller as UIViewController: controller.removeFromParent()
default:
if #available(iOS 9.0, *), let command = unboxedItem as? UIKeyCommand {
removeKeyCommand(command)
Expand Down
4 changes: 2 additions & 2 deletions Sources/Basics/Font.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension PandaChain where Object: FontContainer {
}

@discardableResult
public func font(style: UIFontTextStyle) -> PandaChain {
public func font(style: UIFont.TextStyle) -> PandaChain {
return font(.preferredFont(forTextStyle: style))
}

@available(iOS 10.0, *)
@discardableResult
public func font(style: UIFontTextStyle, compatibleWith traitCollection: UITraitCollection?) -> PandaChain {
public func font(style: UIFont.TextStyle, compatibleWith traitCollection: UITraitCollection?) -> PandaChain {
return font(.preferredFont(forTextStyle: style, compatibleWith: traitCollection))
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Basics/SetHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension PandaChain {
highlighted: Attribute?,
selected: Attribute?,
disabled: Attribute?,
setter: (Attribute?, UIControlState) -> ()) -> PandaChain {
setter: (Attribute?, UIControl.State) -> ()) -> PandaChain {
setter(normal, .normal)

if let highlighted = highlighted {
Expand Down
4 changes: 2 additions & 2 deletions Sources/Extensions/UIScrollViewExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extension PandaChain where Object: UIScrollView {

/// Shows horizontal and vertical scroll indicators.
@discardableResult
public func showsIndicators(_ value: Bool) -> PandaChain {
return showsHorizontalIndicator(value).showsVerticalIndicator(value)
public func showsScrollIndicators(_ value: Bool) -> PandaChain {
return showsHorizontalScrollIndicator(value).showsVerticalScrollIndicator(value)
}
}
8 changes: 4 additions & 4 deletions Sources/Extensions/UIViewExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ extension PandaChain where Object: UIView {
/// Set corner radius. Also set `clipsToBounds` to `true` to enable corner radius.
@discardableResult
public func cornerRadius(_ value: CGFloat) -> PandaChain {
object.layer.pd.cornerRadius(value).masks(true)
object.layer.pd.cornerRadius(value).masksToBounds(true)
return self
}

/// Set rasterized. Also set `rasterizationScale` to screen's scale.
/// Set `shouldRasterize`. Also set `rasterizationScale` to screen's scale.
@discardableResult
public func rasterized(_ value: Bool) -> PandaChain {
object.layer.pd.rasterized(value).rasterizationScale(UIScreen.main.scale)
public func shouldRasterize(_ value: Bool) -> PandaChain {
object.layer.pd.shouldRasterize(value).rasterizationScale(UIScreen.main.scale)
return self
}

Expand Down
10 changes: 1 addition & 9 deletions Sources/Properties/QuartzCore/CAAnimation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ extension CAAnimation: CAAnimationConvertible {}
extension PandaChain: CAAnimationConvertible {}

extension PandaChain where Object: CAAnimation {
/// `timingFunction`
@discardableResult
public func timing(_ value: CAMediaTimingFunction?) -> PandaChain {
object.timingFunction = value
return self
}

@available(*, deprecated, renamed: "timing()")
@discardableResult
public func timingFunction(_ value: CAMediaTimingFunction?) -> PandaChain {
object.timingFunction = value
Expand All @@ -34,7 +26,7 @@ extension PandaChain where Object: CAAnimation {
}

@discardableResult
public func removedOnCompletion(_ value: Bool) -> PandaChain {
public func isRemovedOnCompletion(_ value: Bool) -> PandaChain {
object.isRemovedOnCompletion = value
return self
}
Expand Down
Loading

0 comments on commit 5927db3

Please sign in to comment.