Skip to content
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

Previews are broken #86

Closed
jordibruin opened this issue Jul 9, 2022 · 6 comments · Fixed by #89
Closed

Previews are broken #86

jordibruin opened this issue Jul 9, 2022 · 6 comments · Fixed by #89

Comments

@jordibruin
Copy link
Owner

jordibruin commented Jul 9, 2022

Ongoing list of issues with broken previews:

Screen Status
HeatMap Resolved
SoundBars Resolved
ContentView #86 (comment)
Pyramid #86 (comment)
@shiftingsand
Copy link
Contributor

The 'Text("hello")' is how I got around the problem.

@atrinh0
Copy link
Collaborator

atrinh0 commented Jul 16, 2022

Fixed in main branch.

Issue seems to stem from the chart not handling double values very well.

Screenshot 2022-07-16 at 12 00 21

@atrinh0 atrinh0 closed this as completed Jul 16, 2022
@shiftingsand
Copy link
Contributor

FYI, other charts (such as SoundBars) look like they have the same problem. Preview won't show.

ambiguous use of operator '-'


CompileDylibError: Failed to build SoundBars.swift

Compiling failed: ambiguous use of operator '-'

Swift-Charts-Examples/Swift Charts Examples/Charts/BarCharts/SoundBars.swift:71:30: error: ambiguous use of operator '-'
.chartYScale(domain: -__designTimeInteger("#8148.[2].[4].property.[0].[0].modifier[2].arg[0].value.[0]", fallback: 1)...__designTimeInteger("#8148.[2].[4].property.[0].[0].modifier[2].arg[0].value.[1]", fallback: 1))
^
Swift.Float16:3:31: note: found this candidate
prefix public static func - (x: Float16) -> Float16
^
Swift.Float:2:31: note: found this candidate
prefix public static func - (x: Float) -> Float
^
Swift.Double:2:31: note: found this candidate
prefix public static func - (x: Double) -> Double
^

@atrinh0
Copy link
Collaborator

atrinh0 commented Jul 16, 2022

FYI, other charts (such as SoundBars) look like they have the same problem. Preview won't show.

ambiguous use of operator '-'

CompileDylibError: Failed to build SoundBars.swift

Compiling failed: ambiguous use of operator '-'

Swift-Charts-Examples/Swift Charts Examples/Charts/BarCharts/SoundBars.swift:71:30: error: ambiguous use of operator '-' .chartYScale(domain: -__designTimeInteger("#8148.[2].[4].property.[0].[0].modifier[2].arg[0].value.[0]", fallback: 1)...__designTimeInteger("#8148.[2].[4].property.[0].[0].modifier[2].arg[0].value.[1]", fallback: 1)) ^ Swift.Float16:3:31: note: found this candidate prefix public static func - (x: Float16) -> Float16 ^ Swift.Float:2:31: note: found this candidate prefix public static func - (x: Float) -> Float ^ Swift.Double:2:31: note: found this candidate prefix public static func - (x: Double) -> Double ^

Soundbars previews fixed via ef801a6

@shiftingsand
Copy link
Contributor

FYI, the preview for ContentView crashes.

image

@shiftingsand
Copy link
Contributor

Pyramid preview does not work:

image

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 a pull request may close this issue.

3 participants