From 6cdafc4535e93aa1eedcc6e87939182954dd09fa Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 23 Mar 2022 17:47:56 +0000 Subject: [PATCH] shrinking charts --- Music Tools.xcodeproj/project.pbxproj | 4 +++- Music Tools/Views/Playlist/PlaylistView.swift | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Music Tools.xcodeproj/project.pbxproj b/Music Tools.xcodeproj/project.pbxproj index 3a07189..890ba4b 100644 --- a/Music Tools.xcodeproj/project.pbxproj +++ b/Music Tools.xcodeproj/project.pbxproj @@ -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; diff --git a/Music Tools/Views/Playlist/PlaylistView.swift b/Music Tools/Views/Playlist/PlaylistView.swift index 6099e89..29b3e2d 100644 --- a/Music Tools/Views/Playlist/PlaylistView.swift +++ b/Music Tools/Views/Playlist/PlaylistView.swift @@ -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")){