diff --git a/YDS-Storybook/ComponentSampleViewController/Tooltip/TooltipPageViewController.swift b/YDS-Storybook/ComponentSampleViewController/Tooltip/TooltipPageViewController.swift index 115fd22e..0fe1b47f 100644 --- a/YDS-Storybook/ComponentSampleViewController/Tooltip/TooltipPageViewController.swift +++ b/YDS-Storybook/ComponentSampleViewController/Tooltip/TooltipPageViewController.swift @@ -133,7 +133,7 @@ class TooltipPageViewController: StoryBookViewController { private func resetupTooltip() { tooltip.removeFromSuperview() - tooltip = YDSTooltip(text: tooltipInfo.text , + tooltip = YDSTooltip(text: tooltipInfo.text, color: tooltipInfo.color, tailPosition: tooltipInfo.tailPosition, duration: tooltipInfo.duration) diff --git a/YDS-Storybook/Resources/YDSIconArray.swift b/YDS-Storybook/Resources/YDSIconArray.swift index 946f7a94..42e52db4 100644 --- a/YDS-Storybook/Resources/YDSIconArray.swift +++ b/YDS-Storybook/Resources/YDSIconArray.swift @@ -44,6 +44,8 @@ let ydsIconArray = [ YDSIcon.foodcalendarLine, YDSIcon.groundFilled, YDSIcon.groundLine, + YDSIcon.heartFilled, + YDSIcon.heartLine, YDSIcon.homeFilled, YDSIcon.homeLine, YDSIcon.listLine, diff --git a/YDS/Source/Foundation/YDSIcon.swift b/YDS/Source/Foundation/YDSIcon.swift index 4fe28f44..50866953 100644 --- a/YDS/Source/Foundation/YDSIcon.swift +++ b/YDS/Source/Foundation/YDSIcon.swift @@ -44,6 +44,8 @@ public enum YDSIcon { public static var foodcalendarLine: UIImage { .load(name: "ic_foodcalendar_line") } public static var groundFilled: UIImage { .load(name: "ic_ground_filled") } public static var groundLine: UIImage { .load(name: "ic_ground_line") } + public static var heartFilled: UIImage { .load(name: "ic_heart_filled") } + public static var heartLine: UIImage { .load(name: "ic_heart_line") } public static var homeFilled: UIImage { .load(name: "ic_home_filled") } public static var homeLine: UIImage { .load(name: "ic_home_line") } public static var listLine: UIImage { .load(name: "ic_list_line") } diff --git a/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_filled.imageset/Contents.json b/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_filled.imageset/Contents.json new file mode 100644 index 00000000..0f127743 --- /dev/null +++ b/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_filled.imageset/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "filename" : "ic_heart_filled.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "preserves-vector-representation" : true + } +} diff --git a/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_filled.imageset/ic_heart_filled.svg b/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_filled.imageset/ic_heart_filled.svg new file mode 100644 index 00000000..2f90e8a6 --- /dev/null +++ b/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_filled.imageset/ic_heart_filled.svg @@ -0,0 +1,4 @@ + + + + diff --git a/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_line.imageset/Contents.json b/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_line.imageset/Contents.json new file mode 100644 index 00000000..489eea52 --- /dev/null +++ b/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_line.imageset/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "filename" : "ic_heart_line.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "preserves-vector-representation" : true + } +} diff --git a/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_line.imageset/ic_heart_line.svg b/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_line.imageset/ic_heart_line.svg new file mode 100644 index 00000000..0fa9a35e --- /dev/null +++ b/YDS/Source/Foundation/YDSIcon.xcassets/ic_heart_line.imageset/ic_heart_line.svg @@ -0,0 +1,3 @@ + + +