@hanwha-ss1/plugin 0.6.3-beta.4 → 0.6.3-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/HanwhaSs1Plugin.podspec
CHANGED
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.homepage = package['repository']['url']
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
|
-
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp,xib,
|
|
13
|
+
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp,xib,png}'
|
|
14
14
|
s.resource_bundles = {
|
|
15
15
|
'KeyboardMenuIcon' => ['ios/Plugin/Keyboard/*.xcassets']
|
|
16
16
|
}
|
|
@@ -46,16 +46,18 @@ class KeyboardMenu: UIStackView {
|
|
|
46
46
|
// svg 이미지에서 file 이미지 가져와서 사용
|
|
47
47
|
|
|
48
48
|
let podBundle = Bundle(for: KeyboardMenu.self)
|
|
49
|
-
|
|
50
|
-
let imageSource = UIImage(named: imgArray[i], in: podBundle, compatibleWith: nil);
|
|
51
49
|
|
|
50
|
+
if let resourceBundleURL = podBundle.url(forResource: "KeyboardMenuIcon", withExtension: "bundle"),
|
|
51
|
+
let resourceBundle = Bundle(url: resourceBundleURL) {
|
|
52
|
+
let image = UIImage(named: imgArray[i], in: resourceBundle, compatibleWith: nil)
|
|
53
|
+
addButton.setImage(image, for: .normal);
|
|
54
|
+
addButton.accessibilityHint = imgArray[i];
|
|
55
|
+
addButton.backgroundColor = .white
|
|
56
|
+
addButton.addTarget(self, action: #selector(menuTapped(_:)), for: .touchUpInside)
|
|
57
|
+
self.addArrangedSubview(addButton)
|
|
58
|
+
|
|
59
|
+
}
|
|
52
60
|
|
|
53
|
-
|
|
54
|
-
addButton.setImage(imageSource, for: .normal);
|
|
55
|
-
addButton.accessibilityHint = imgArray[i];
|
|
56
|
-
addButton.backgroundColor = .white
|
|
57
|
-
addButton.addTarget(self, action: #selector(menuTapped(_:)), for: .touchUpInside)
|
|
58
|
-
self.addArrangedSubview(addButton)
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
|