Open chaneeii opened 2 years ago
https://zeddios.tistory.com/m/832
요렇게 만들고 싶은데,
이렇게 되었다..!
해결방법은!!
contentview
를 기준으로 sendSubviewToBack 을 해주었다!
func createLayout() {
contentView.addSubviews([imageView, emojiView, menuLabel, dateLabel])
contentView.sendSubviewToBack(emojiView)
emojiView.snp.makeConstraints {
$0.top.equalToSuperview()
$0.leading.equalToSuperview().offset(9)
$0.width.height.equalTo(30)
}
imageView.snp.makeConstraints {
$0.top.equalToSuperview().inset(15)
$0.leading.trailing.equalToSuperview()
$0.width.height.equalTo(167)
}
https://stackoverflow.com/questions/38780743/how-can-i-bring-a-view-in-front-of-another-view-in-swift