File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed
Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ import UIKit
2+
3+ final class BlurView : UIView {
4+ private let effectView : UIVisualEffectView = . init( effect: UIBlurEffect ( style: . extraLight) )
5+
6+ // MARK: - Init
7+
8+ init ( style: UIBlurEffectStyle ) {
9+ super. init ( frame: . zero)
10+ insertSubview ( effectView, at: 0 )
11+ }
12+
13+ required init ? ( coder aDecoder: NSCoder ) {
14+ fatalError ( )
15+ }
16+
17+ // MARK: - Subviews
18+
19+ override func addSubview( _ view: UIView ) {
20+ effectView. contentView. addSubview ( view)
21+ }
22+
23+ override func layoutSubviews( ) {
24+ super. layoutSubviews ( )
25+ effectView. frame = bounds
26+ }
27+ }
Original file line number Diff line number Diff line change 1+ //
2+ // FooterViewController.swift
3+ // BarcodeScanner
4+ //
5+ // Created by Vadym Markov on 22/01/2018.
6+ //
7+
8+ import Foundation
Original file line number Diff line number Diff line change 1+ //
2+ // NSLayoutConstraint+Extensions.swift
3+ // BarcodeScanner
4+ //
5+ // Created by Vadym Markov on 22/01/2018.
6+ //
7+
8+ import Foundation
You can’t perform that action at this time.
0 commit comments