Skip to content

Commit a39e64d

Browse files
committed
Fixes deprecated code
1 parent 8634613 commit a39e64d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/InfoView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class InfoView: UIVisualEffectView {
127127
borderView.isHidden = false
128128

129129
animate(blurStyle: .light)
130-
animate(borderViewAngle: CGFloat(M_PI_2))
130+
animate(borderViewAngle: CGFloat(Double.pi/2))
131131
}
132132

133133
/**
@@ -164,7 +164,7 @@ class InfoView: UIVisualEffectView {
164164
animations: {
165165
self.borderView.transform = CGAffineTransform(rotationAngle: borderViewAngle)
166166
}, completion: { [weak self] _ in
167-
self?.animate(borderViewAngle: borderViewAngle + CGFloat(M_PI_2))
167+
self?.animate(borderViewAngle: borderViewAngle + CGFloat(Double.pi/2))
168168
})
169169
}
170170
}

0 commit comments

Comments
 (0)