Skip to content

Commit

Permalink
fix bug: Catransaction.begin is not written
Browse files Browse the repository at this point in the history
	modified:   JXPageControl.podspec
	modified:   JXPageControl/Classes/Jump/JXPageControlJump.swift
	modified:   JXPageControl/Classes/Transform/JXPageControlExchange.swift
	modified:   JXPageControl/Classes/Transform/JXPageControlScale.swift
  • Loading branch information
jiaxiang.tan committed Sep 20, 2021
1 parent 98cf1e1 commit f1dd0f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion JXPageControl.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'JXPageControl'
s.version = '0.1.4'
s.version = '0.1.5'
s.summary = 'Custom UIPageControl: supports multiple animations, layouts'

# This description is used to generate tags and improve search results.
Expand Down
1 change: 1 addition & 0 deletions JXPageControl/Classes/Jump/JXPageControlJump.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import UIKit
else { return }

CATransaction.setDisableActions(!isAnimation)
CATransaction.begin()

let marginX = (maxIndicatorSize.width - activeSize.width) * 0.5
let marginyY = (maxIndicatorSize.height - activeSize.height) * 0.5
Expand Down
2 changes: 2 additions & 0 deletions JXPageControl/Classes/Transform/JXPageControlExchange.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import UIKit
if leftIndex == rightIndex {

CATransaction.setDisableActions(true)
CATransaction.begin()

let marginX: CGFloat = maxIndicatorSize.width + columnSpacing

Expand Down Expand Up @@ -59,6 +60,7 @@ import UIKit
}else {

CATransaction.setDisableActions(true)
CATransaction.begin()

let marginX: CGFloat = maxIndicatorSize.width + columnSpacing

Expand Down
1 change: 1 addition & 0 deletions JXPageControl/Classes/Transform/JXPageControlScale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import UIKit


CATransaction.setDisableActions(true)
CATransaction.begin()

let tempInactiveColor = isInactiveHollow ? UIColor.clear : inactiveColor
let tempActiveColor = (isInactiveHollow && isActiveHollow) ? UIColor.clear : activeColor
Expand Down

0 comments on commit f1dd0f5

Please sign in to comment.