When "Cannot convert value of type '(X, Y)?' to specified type 'String?'" error occurs

Hello and good day all,

I'm trying to build a basic app for tracking expenses as a summertime project of my own, for fun you might say as well. 
At this stage I've got an idea to make a pie chart's sections get some sort of highlighter when the cursor hovers over them and also thought of adding in a little tooltip that pops up next to the cursor that gives a list of all the expenses that are included in that said section upon which we re hovering with the cursor. However I cannot wrap my head around why do I keep getting these pesky errors for the past 2 hours.

I have to mention that I am a Computer Science student that just got into their 2nd year and in my university we are not taught swift, but languages like C, C++, JAVA, ASCII (this is how universities are in Romania), and I wanted to do this project so that i can test my knowledge and also learn the SwiftUI language.

I will also attach a screenshot of a part of the code that I put together for better context in hopes that someone will be able to clarify to me why this is happening and give me an idea upon how to fix it.

Thank you so very much in advance! :smiley: 

You're using the overload that uses a point, not one of the overloads that uses only one axis lookup.

2 Likes