Skip to content

iOS 15 Crash has been fixed. #5000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ekucet
Copy link

@ekucet ekucet commented Jan 9, 2023

Issue Link 🔗

If you want all the pies to be highlighted in the piechart, you will get an error in ios 15. Cannot convert NSArray to Swift Array.

var highlights: [Highlight] = []
for i in 0 ..< entries.count {
    let highlight = Highlight(x: Double(i), y: Const.highlightYValue, dataSetIndex: Const.highlightDataSetIndex)
    highlights.append(highlight)
}        
pieChartView.highlightValues(highlights)

Used compactMap to cast NSArray to Swift Array.

Goals ⚽

None

Implementation Details 🚧

None

Testing Details 🔍

None

@pmairoldi pmairoldi self-assigned this Mar 11, 2023
@pmairoldi pmairoldi added this to the 5.0.0 milestone Mar 11, 2023
@pmairoldi
Copy link
Collaborator

Needs a reproducible project. You can always map before passing the array to our function.

@pmairoldi pmairoldi modified the milestones: 5.0.0, Future Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants