From ce8a3e9cf6afb4337f2155bfa346b4acd86e813e Mon Sep 17 00:00:00 2001 From: Willy Noel Date: Tue, 7 Aug 2018 12:27:45 +0200 Subject: [PATCH] Finish to implements the custom image mode. --- Example/StarsKit/Base.lproj/Main.storyboard | 61 +++++++++++------- Example/StarsKit/ViewController.swift | 15 +++++ .../ic_notation_1.imageset/Contents.json | 23 +++++++ .../ic_notation_1.imageset/ic_notation_1.png | Bin 0 -> 2363 bytes .../ic_notation_1@2x.png | Bin 0 -> 7101 bytes .../ic_notation_1@3x.png | Bin 0 -> 14113 bytes .../StarsKitImages.xcassets/ic_notation_1.png | Bin 0 -> 2363 bytes .../ic_notation_1@2x.png | Bin 0 -> 7101 bytes .../ic_notation_1@3x.png | Bin 0 -> 14113 bytes .../ic_notation_2.imageset/Contents.json | 23 +++++++ .../ic_notation_2.imageset/ic_notation_2.png | Bin 0 -> 2585 bytes .../ic_notation_2@2x.png | Bin 0 -> 7795 bytes .../ic_notation_2@3x.png | Bin 0 -> 15510 bytes .../StarsKitImages.xcassets/ic_notation_2.png | Bin 0 -> 2585 bytes .../ic_notation_2@2x.png | Bin 0 -> 7795 bytes .../ic_notation_2@3x.png | Bin 0 -> 15510 bytes .../ic_notation_3.imageset/Contents.json | 23 +++++++ .../ic_notation_3.imageset/ic_notation_3.png | Bin 0 -> 2296 bytes .../ic_notation_3@2x.png | Bin 0 -> 6797 bytes .../ic_notation_3@3x.png | Bin 0 -> 13446 bytes .../StarsKitImages.xcassets/ic_notation_3.png | Bin 0 -> 2296 bytes .../ic_notation_3@2x.png | Bin 0 -> 6797 bytes .../ic_notation_3@3x.png | Bin 0 -> 13446 bytes .../ic_notation_4.imageset/Contents.json | 23 +++++++ .../ic_notation_4.imageset/ic_notation_4.png | Bin 0 -> 2254 bytes .../ic_notation_4@2x.png | Bin 0 -> 6733 bytes .../ic_notation_4@3x.png | Bin 0 -> 13309 bytes .../StarsKitImages.xcassets/ic_notation_4.png | Bin 0 -> 2254 bytes .../ic_notation_4@2x.png | Bin 0 -> 6733 bytes .../ic_notation_4@3x.png | Bin 0 -> 13309 bytes .../ic_notation_5.imageset/Contents.json | 23 +++++++ .../ic_notation_5.imageset/ic_notation_5.png | Bin 0 -> 2492 bytes .../ic_notation_5@2x.png | Bin 0 -> 7477 bytes .../ic_notation_5@3x.png | Bin 0 -> 14726 bytes .../StarsKitImages.xcassets/ic_notation_5.png | Bin 0 -> 2492 bytes .../ic_notation_5@2x.png | Bin 0 -> 7477 bytes .../ic_notation_5@3x.png | Bin 0 -> 14726 bytes .../Logic/StarsKitGraphicContext.swift | 5 +- StarsKit/Classes/UI/SmileyRateView.swift | 32 ++++++--- StarsKit/Classes/UI/SmileyRateView.xib | 15 ++--- .../Classes/UI/StarsPopViewController.xib | 4 +- .../UI/Steps/StarsRateViewController.swift | 11 ++-- .../UI/Steps/StarsRateViewController.xib | 20 +++--- 43 files changed, 217 insertions(+), 61 deletions(-) create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_1.imageset/Contents.json create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_1.imageset/ic_notation_1.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_1.imageset/ic_notation_1@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_1.imageset/ic_notation_1@3x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_1.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_1@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_1@3x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_2.imageset/Contents.json create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_2.imageset/ic_notation_2.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_2.imageset/ic_notation_2@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_2.imageset/ic_notation_2@3x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_2.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_2@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_2@3x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_3.imageset/Contents.json create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_3.imageset/ic_notation_3.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_3.imageset/ic_notation_3@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_3.imageset/ic_notation_3@3x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_3.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_3@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_3@3x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_4.imageset/Contents.json create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_4.imageset/ic_notation_4.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_4.imageset/ic_notation_4@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_4.imageset/ic_notation_4@3x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_4.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_4@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_4@3x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_5.imageset/Contents.json create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_5.imageset/ic_notation_5.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_5.imageset/ic_notation_5@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_5.imageset/ic_notation_5@3x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_5.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_5@2x.png create mode 100644 StarsKit/Assets/StarsKitImages.xcassets/ic_notation_5@3x.png diff --git a/Example/StarsKit/Base.lproj/Main.storyboard b/Example/StarsKit/Base.lproj/Main.storyboard index b58ef03..c6ae2a7 100644 --- a/Example/StarsKit/Base.lproj/Main.storyboard +++ b/Example/StarsKit/Base.lproj/Main.storyboard @@ -1,11 +1,11 @@ - + - + @@ -36,10 +36,10 @@ - + - + - + + + + + + + + + + + + + - + @@ -76,16 +93,16 @@ - + - + @@ -93,16 +110,16 @@ - + - + @@ -110,22 +127,22 @@ - + - +