Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions
public func SKTTimingFunctionExtremeBackEaseInOut(t: CGFloat) -> CGFloat {
if t < 0.5 {
let f = 2.0 * t
return 0.5 * (f * f - sin(f * π)) * f
} else {
let f = 2.0 * (1.0 - t)
return 1.0 - 0.5 * (f * f - sin(f * π)) * f
}
}
return 1.0 - 0.5 * (f * f - sin(f * π)) * f
This line caused the crash. It error after I update to swift 3. How would I rewrite it?