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

Fix compiler warnings #431

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ let package = Package(
targets: [
.target(
name: "SwiftCharts",
path: "SwiftCharts"
path: "SwiftCharts",
swiftSettings: [
.unsafeFlags(["-Xfrontend", "-application-extension"])
],
linkerSettings: [
.unsafeFlags(["-Xlinker", "-application_extension"])
]
)

],
swiftLanguageVersions: [.v5]
)
)
4 changes: 2 additions & 2 deletions SwiftCharts/Axis/ChartAxisLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ open class ChartAxisLabel {

extension ChartAxisLabel: CustomDebugStringConvertible {
public var debugDescription: String {
return [
return ([
"text": text,
"settings": settings
]
] as [String : Any])
.debugDescription
}
}
4 changes: 2 additions & 2 deletions SwiftCharts/Axis/ChartAxisModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ open class ChartAxisModel {

extension ChartAxisModel: CustomDebugStringConvertible {
public var debugDescription: String {
return [
return ([
"firstModelValue": firstModelValue,
"lastModelValue": lastModelValue,
"axisTitleLabels": axisTitleLabels,

]
] as [String : Any])
.debugDescription
}
}
4 changes: 2 additions & 2 deletions SwiftCharts/Drawers/ChartLabelDrawer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ public extension ChartLabelSettings {

extension ChartLabelSettings: CustomDebugStringConvertible {
public var debugDescription: String {
return [
return ([
"font": font,
"fontColor": fontColor,
"rotation": rotation,
"rotationKeep": rotationKeep,
"shiftXOnRotation": shiftXOnRotation,
"textAlignment": textAlignment
]
] as [String : Any])
.debugDescription
}
}
Expand Down
6 changes: 3 additions & 3 deletions SwiftCharts/Layers/ChartStackedBarsLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ open class ChartStackedBarModel: ChartBarModel {
}

extension ChartStackedBarModel: CustomDebugStringConvertible {
open var debugDescription: String {
return [
public var debugDescription: String {
return ([
"items": items,
"constant": constant,
"axisValue1": axisValue1,
"axisValue2": axisValue2
]
] as [String : Any])
.debugDescription
}
}
Expand Down