I figured out that you need to use the .clipped() modifier to fix this.
Post
Replies
Boosts
Views
Activity
You can use .chartYScale() and .chartXScale() for that. You can pass parameters for the scale.
Here is a link to some of the Apple documentation for those.
[https://developer.apple.com/documentation/swiftui/view-chart-view]
For example when I add a new scene in the App file SwiftUI automatically adds the option to create a new window of that scene type in the File menu.
Here you can see that I have added a second scene.
Here you can see that now in the file menu I have the option to open a new window of either scene type. How do I do this same thing with a button? I want to have a button in a window for example that would call the ChartView scene and create a new window with it.
I have seen examples like [https://developer.apple.com/forums/thread/651592)
These examples basically open a URL with the app name and scene name. In these examples you also need to add the App URL to the info.plist and App info -> URL types. The problem is when I build these solutions in Xcode 13.2.1 and then click the button I get a popup window with the finder icon that says the application cannot be opened and it has an error code of -50.
Never mind I see what I was doing wrong here. I am embarrassed to say that I got tunnel vision and forgot while my variable was a UInt16 I had the variable set and Any for other reasons.