@hanwha-ss1/plugin 0.1.3 → 0.1.5

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.
@@ -16,9 +16,10 @@ extension UIView {
16
16
  let textField = UITextField()
17
17
  textField.isSecureTextEntry = true
18
18
  self.addSubview(textField)
19
+
19
20
  textField.centerYAnchor.constraint(equalTo: self.centerYAnchor).isActive = true
20
21
  textField.centerXAnchor.constraint(equalTo: self.centerXAnchor).isActive = true
21
-
22
+
22
23
  let backView = UIView(frame: self.frame)
23
24
  let image = UIImageView(image: UIImage(named: "background", in: Bundle(for: PreventCapture.self), compatibleWith: nil))
24
25
  image.frame = backView.bounds
@@ -26,11 +27,9 @@ extension UIView {
26
27
  backView.backgroundColor = UIColor.lightGray
27
28
  backView.addSubview(image)
28
29
 
29
-
30
30
  textField.insertSubview(backView, at: 0)
31
31
 
32
- // 캡쳐하려는 뷰의 레이어를 textField.layer 사이에 끼워넣기
33
-
32
+ textField.layer.removeFromSuperlayer()
34
33
  self.layer.superlayer?.insertSublayer(textField.layer, at: 0)
35
34
  textField.layer.sublayers?.last?.addSublayer(self.layer)
36
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanwha-ss1/plugin",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",