Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ChartAnimationEasing.swift file getting compiler error error on Xcode14-beta #4835

@eliakorkmaz

Description

@eliakorkmaz

What did you do?

I tried to run my application with Xcode 14 Beta and in Charts pod ChartAnimationEasing.swift file there's an error with this function

    internal static let EaseOutBack = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in
        let s: TimeInterval = 1.70158
        var position: TimeInterval = elapsed / duration
        position -= 1.0
        return Double( position * position * ((s + 1.0) * position + s) + 1.0 )
    }

The error says that The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions. Is there anything I can do with it ?

I expect to run my application without any error however the Chart file getting error that relational with type-checking

Charts Environment

My podfile includes Charts like default

pod 'Charts'

Charts version/Branch/Commit Number:
**Xcode version: Version 14.0 beta (14A5228q)
**Swift version: swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
Platform(s) running Charts: Xcode 14.0 Beta as I described, tried to run into multiple simulators and real devices
macOS version running Xcode: MacOS Monterey 12.4 (21F79)
CommandLineTool: Xcode14 14A5228q

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions