shrinking charts
This commit is contained in:
parent
3a68d3c892
commit
6cdafc4535
@ -338,7 +338,7 @@
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastSwiftUpdateCheck = 1130;
|
||||
LastUpgradeCheck = 1130;
|
||||
LastUpgradeCheck = 1330;
|
||||
ORGANIZATIONNAME = Sarsoo;
|
||||
TargetAttributes = {
|
||||
E9EA690623F9A5430012C3E8 = {
|
||||
@ -510,6 +510,7 @@
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
@ -570,6 +571,7 @@
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
|
@ -26,6 +26,8 @@ struct PlaylistView: View {
|
||||
}
|
||||
}
|
||||
|
||||
var chartSize = CGSize(width:140, height:220);
|
||||
|
||||
var body: some View {
|
||||
Form {
|
||||
Section(header: Text("Stats")){
|
||||
@ -74,13 +76,13 @@ struct PlaylistView: View {
|
||||
title: "Tracks",
|
||||
legend:"Listening",
|
||||
style: chartStyle,
|
||||
form: ChartForm.medium)
|
||||
form: chartSize)
|
||||
PieChartView(
|
||||
data: [Double(self.playlist.lastfm_stat_album_percent), Double(100 - self.playlist.lastfm_stat_album_percent)],
|
||||
title: "Albums",
|
||||
legend:"Listening",
|
||||
style: chartStyle,
|
||||
form: ChartForm.medium)
|
||||
form: chartSize)
|
||||
Spacer()
|
||||
}
|
||||
PieChartView(
|
||||
@ -88,7 +90,7 @@ struct PlaylistView: View {
|
||||
title: "Artists",
|
||||
legend:"Listening",
|
||||
style: chartStyle,
|
||||
form: ChartForm.medium)
|
||||
form: chartSize)
|
||||
}
|
||||
|
||||
Section(header: Text("Options")){
|
||||
|
Loading…
Reference in New Issue
Block a user