Skip to content

Commit

Permalink
Change the access level for UISpringTimingParameters extension
Browse files Browse the repository at this point in the history
  • Loading branch information
scenee committed Mar 19, 2019
1 parent 2b1d6a3 commit e0a5dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Framework/Sources/UIExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ extension UIScrollView {
}

extension UISpringTimingParameters {
public convenience init(dampingRatio: CGFloat, frequencyResponse: CGFloat, initialVelocity: CGVector = .zero) {
convenience init(dampingRatio: CGFloat, frequencyResponse: CGFloat, initialVelocity: CGVector = .zero) {
let mass = 1 as CGFloat
let stiffness = pow(2 * .pi / frequencyResponse, 2) * mass
let damp = 4 * .pi * dampingRatio * mass / frequencyResponse
Expand Down

0 comments on commit e0a5dbc

Please sign in to comment.