From d07fa924b85da06283772680fe84bae5c05f7da0 Mon Sep 17 00:00:00 2001 From: Damon Date: Tue, 10 Sep 2024 13:55:03 +0800 Subject: [PATCH] fix icon --- DDKitSwift.podspec | 2 +- pod/DDKitSwiftWindow.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DDKitSwift.podspec b/DDKitSwift.podspec index 7ea984a..56799c6 100644 --- a/DDKitSwift.podspec +++ b/DDKitSwift.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'DDKitSwift' s.swift_version = '5.0' -s.version = '3.0.5' +s.version = '3.0.6' s.license= { :type => "MIT", :file => "LICENSE" } s.summary = 'DDKitSwift is the supporting framework of ZXKitSwift, for ZXKitSwift plugin developers' s.homepage = 'https://github.com/DamonHu/DDKitSwift' diff --git a/pod/DDKitSwiftWindow.swift b/pod/DDKitSwiftWindow.swift index e7d63af..a20af53 100644 --- a/pod/DDKitSwiftWindow.swift +++ b/pod/DDKitSwiftWindow.swift @@ -178,14 +178,14 @@ private extension DDKitSwiftWindow { rootViewController.navigationItem.titleView = view //navigationBar let button = UIButton(frame: .init(x: 0, y: 0, width: 25, height: 25)) - button.setImage(UIImage(named: "log_icon_close"), for: .normal) + button.setImage(UIImageHDBoundle(named: "log_icon_close"), for: .normal) button.addTarget(self, action: #selector(_closeBarItemClick), for: .touchUpInside) NSLayoutConstraint(item: button, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 25).isActive = true NSLayoutConstraint(item: button, attribute: .width, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 25).isActive = true let leftbarItem = UIBarButtonItem(customView: button) let button1 = UIButton(frame: .init(x: 0, y: 0, width: 25, height: 25)) - button1.setImage(UIImage(named: "log_icon_subtract"), for: .normal) + button1.setImage(UIImageHDBoundle(named: "log_icon_subtract"), for: .normal) button1.addTarget(self, action: #selector(_hideBarItemClick), for: .touchUpInside) NSLayoutConstraint(item: button1, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 25).isActive = true NSLayoutConstraint(item: button1, attribute: .width, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 25).isActive = true