Skip to content

Commit

Permalink
#171: SectionDivider 디자인 컴포넌트 생성
Browse files Browse the repository at this point in the history
dev-muuu committed Feb 23, 2023
1 parent 424369f commit 2e2ccd2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Zatch/Global/Source/Component/SectionDivider.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//
// SectionDivider.swift
// Zatch
//
// Created by 박소윤 on 2023/02/23.
//

import Foundation

extension ZatchComponent{

class SectionDivider: BaseView{

private let borderLine = BorderLine(color: .black10, height: 1)
private let sectionView = BorderLine(color: .black5, height: 8)

init(){
super.init(frame: .zero)
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override func hierarchy() {
self.addSubview(sectionView)
self.addSubview(borderLine)
}

override func layout() {
borderLine.snp.makeConstraints{
$0.top.leading.trailing.equalToSuperview()
}
sectionView.snp.makeConstraints{
$0.top.leading.trailing.bottom.equalToSuperview()
}
}
}
}

0 comments on commit 2e2ccd2

Please sign in to comment.