willdale / SwiftUICharts

A charts / plotting library for SwiftUI. Works on macOS, iOS, watchOS, and tvOS and has accessibility features built in.
MIT License
837 stars 103 forks source link

chart doesn't respond to view transition modifier #216

Open SpaceGrey opened 2 years ago

SpaceGrey commented 2 years ago

for example, I have a view switcher like this

 switch motionData.page{
        case .goal:
            GoalView(haveGoal: true).transition(.offset(x: 0, y: UIScreen.screenHeight))
        case .result:
            ResultView().transition(.move(edge: .bottom))
        }

the chart in the result view won't conform to the animation, how to solve this problem?