ChartsOrg / Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Apache License 2.0
27.51k stars 5.99k forks source link

ChartFill #4905

Open JorgenAndreasson opened 2 years ago

JorgenAndreasson commented 2 years ago

A fellow programmer o mine has been using Chart since Objective-C days. I had to update Chart to 4.1.0 due to Xcode 14.

However, there is a line of code mfaSet.fill = [ChartFill fillWithColor:UIColor.redColor]; which is failing.

Was there a ChartFill previously?

Charts Environment

Charts version/Branch/Commit Number:4.1.0 Xcode version: 14.0 Swift version: 5.7 Platform(s) running Charts: iPad macOS version running Xcode:12.5.1

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

JorgenAndreasson commented 2 years ago

Screenshot 2022-09-13 at 12 31 10

ToninZhao commented 2 years ago

You can use ChartColorFill instead of ChartFill. Fill Apis in the latest version had changed. [[ChartColorFill alloc] initWithColor:UIColor.redColor];