     var onShowPhotoLibraryV2NewFlowButtonTap: (() -> ())?
     var onShowScannerButtonTap: (() -> ())?
     
-    // MARK: - UIView
-    
-    override func layoutSubviews() {
-        super.layoutSubviews()
-        
-        mediaPickerButton.sizeToFit()
-        mediaPickerButton.center = CGPoint(x: bounds.midX, y: bounds.midY - 60)
-        
-        maskCropperButton.sizeToFit()
-        maskCropperButton.center = CGPoint(x: bounds.midX, y: bounds.midY - 30)
-        
-        photoLibraryButton.sizeToFit()
-        photoLibraryButton.center = CGPoint(x: bounds.midX, y: bounds.midY)
-        
-        photoLibraryV2Button.sizeToFit()
-        photoLibraryV2Button.center = CGPoint(x: bounds.midX, y: bounds.midY + 30)
-        
-        photoLibraryV2NewFlowButton.sizeToFit()
-        photoLibraryV2NewFlowButton.center = CGPoint(x: bounds.midX, y: bounds.midY + 60)
-        
-        scannerButton.sizeToFit()
-        scannerButton.center = CGPoint(x: bounds.midX, y: bounds.midY + 90)
-    }
-    
     // MARK: - Private
     
     @objc private func onShowMediaPickerButtonTap(_: UIButton) {

            for: .touchUpInside
        )
        
        addSubview(mediaPickerButton)
        addSubview(maskCropperButton)
        addSubview(photoLibraryButton)
        addSubview(photoLibraryV2Button)
        addSubview(photoLibraryV2NewFlowButton)
        addSubview(scannerButton)
    }
    
    required init?(coder aDecoder: NSCoder) {

import UIKit

final class ExampleView: UIView {
    
    private let stackView: UIStackView = {
        let stackView = UIStackView()
        stackView.axis = .vertical
        stackView.alignment = .center
        stackView.distribution = .equalSpacing
        stackView.spacing = 8
        return stackView
    }()
    
    private let mediaPickerButton = UIButton()
    private let maskCropperButton = UIButton()
