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

V2 version of SwiftUI ChartView #89

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d869e41
Replace the old with a more sleek and flexible code architecture
AppPear May 22, 2020
5cd5858
Added a first implementation of BarChart and LineChart also introduce…
AppPear May 24, 2020
a2d75dc
Write unit tests for CGPoint+Extension.swift (#100)
AdrianBinDC May 25, 2020
aa91264
Add PieChart + multicolor (#98)
satan87 May 25, 2020
b5beab5
removed .rotate for foreGroundColor
AppPear May 25, 2020
99b952f
Restore rotating index for multicolor (#102)
satan87 May 26, 2020
4963ec5
Write unit tests for Color+Extension.swift (#101)
AdrianBinDC May 26, 2020
f2866ae
Syntax corrections (#105)
satan87 May 28, 2020
0caebce
added mac os as a build target
AppPear May 28, 2020
d64d0e9
Bug Fix: Bar Chart with [0] crashed (#110)
satan87 May 30, 2020
f0eea58
Add CardView and CardLabel (#111)
AppPear May 30, 2020
dff16e8
Creating a data structure which propagets changes in data to the char…
AppPear Jun 21, 2020
57ac969
Added ChartLabel interaction
AppPear Jun 28, 2020
c46902d
Refactor Chart base (#143)
AppPear Jul 25, 2020
3265d3e
Add public modifier to ChartColors and add showShadow property
AppPear Jul 25, 2020
7fb2a00
Fix cornerMasking on card view when no shadow is set
AppPear Jul 29, 2020
2ef73c8
Dark/Light mode fixes (#148)
sagar5534 Jul 31, 2020
ed01f53
recalculate geometry if orientation has changed (#156)
danwood Aug 24, 2020
51db5a0
Issue 99 documentation (#159)
danwood Aug 24, 2020
8ee353c
Activity-type Rings charts (#161)
danwood Aug 24, 2020
9210d01
V2 beta 2 changes (#150)
AppPear Aug 24, 2020
84578d2
Add a public init() to RingsChart
AppPear Aug 24, 2020
7861bbc
feat(core): refactoring chart dispalying (#191)
AppPear Jun 9, 2021
caa75ec
feat: add linechart interaction point (#202)
AppPear Aug 11, 2021
bd29afc
fix: BarChartCellShape to handle negative numbers correctly (#250)
AppPear Sep 3, 2022
d7e9802
fix: remove UIColors which caused CI build errors (#251)
AppPear Sep 3, 2022
ebaaf81
feat: new protocol for chained functions, and added support for expli…
AppPear Oct 24, 2022
7fd5b18
Feat/new protocol and range (#255)
AppPear Nov 26, 2022
7140b8b
feat: add animation toggle interface (#256)
AppPear Nov 26, 2022
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
64 changes: 64 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
disabled_rules:
- explicit_acl
- trailing_whitespace
- force_cast
- unused_closure_parameter
- multiple_closures_with_trailing_closure
opt_in_rules:
- anyobject_protocol
- array_init
- attributes
- collection_alignment
- colon
- conditional_returns_on_newline
- convenience_type
- empty_count
- empty_string
- empty_collection_literal
- enum_case_associated_values_count
- function_default_parameter_at_end
- fatal_error_message
- file_name
- first_where
- modifier_order
- toggle_bool
- unused_private_declaration
- yoda_condition
excluded:
- Carthage
- Pods
- SwiftLint/Common/3rdPartyLib
identifier_name:
excluded:
- a
- b
- c
- i
- id
- t
- to
- x
- y
line_length:
warning: 150
error: 200
ignores_function_declarations: true
ignores_comments: true
ignores_urls: true
function_body_length:
warning: 300
error: 500
function_parameter_count:
warning: 6
error: 8
type_body_length:
warning: 300
error: 400
file_length:
warning: 500
error: 1200
ignore_comment_only_lines: true
cyclomatic_complexity:
warning: 15
error: 21
reporter: "xcode"
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>SwiftUICharts.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "91E23D30-CB6C-44DA-BEFC-9D39A1DA2242"
type = "1"
version = "2.0">
</Bucket>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@
<key>SwiftUICharts.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>SwiftUICharts</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>SwiftUIChartsTests</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import PackageDescription
let package = Package(
name: "SwiftUICharts",
platforms: [
.iOS(.v13),.watchOS(.v6)
.iOS(.v13), .watchOS(.v6), .macOS(.v10_15)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "SwiftUICharts",
targets: ["SwiftUICharts"]),
targets: ["SwiftUICharts"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
Expand All @@ -26,6 +26,6 @@ let package = Package(
dependencies: []),
.testTarget(
name: "SwiftUIChartsTests",
dependencies: ["SwiftUICharts"]),
dependencies: ["SwiftUICharts"])
]
)
44 changes: 0 additions & 44 deletions Sources/SwiftUICharts/BarChart/BarChartCell.swift

This file was deleted.

50 changes: 0 additions & 50 deletions Sources/SwiftUICharts/BarChart/BarChartRow.swift

This file was deleted.

148 changes: 0 additions & 148 deletions Sources/SwiftUICharts/BarChart/BarChartView.swift

This file was deleted.

Loading