-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} | ||
} | ||
} | ||
} |