Skip to content

Commit

Permalink
fix icon
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHu committed Sep 10, 2024
1 parent 8e286b5 commit d07fa92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DDKitSwift.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
4 changes: 2 additions & 2 deletions pod/DDKitSwiftWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d07fa92

Please sign in to comment.