12345678910111213141516171819202122232425262728293031323334 |
- //
- // IHServiceHeaderView.swift
- // Inhealth
- //
- // Created by weclouds on 2019/12/19.
- // Copyright © 2019 weclouds. All rights reserved.
- //
- import UIKit
- class IHServiceHeaderView: UIView {
- lazy var imageView: UIImageView = {
- let imageView = UIImageView(image: UIImage(named: "Sensor--Device Information"))
- return imageView
- }()
- override init(frame: CGRect) {
- super.init(frame: frame)
- addSubview(imageView)
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-
- override func layoutSubviews() {
- super.layoutSubviews()
- imageView.snp.makeConstraints { (make) in
- make.centerX.equalToSuperview()
- make.bottom.equalToSuperview().offset(-30)
- make.width.height.equalTo(100)
- }
- }
- }
|