
[TIL / 25.03.28] 과제 5, 스택뷰가 보이지 않는 문제 해결
·
iOS/Swift
1. 메인 트러블슈팅버튼이 출력되지 않던 문제, configure 이전에 setupUI를 해주어 count가 넘어가지 않고 0인채로 렌더링하고 끝나는 줄 알았는데, 그렇다고 데이터가 후에 바인딩 되던게 여기서는 안될 리가 없었다. //// BookSeriesView.swift// HarryPotterBooks//// Created by 송규섭 on 3/28/25.//import UIKitclass BookSeriesView: UIView { private var seriesCount: Int = 0 private let stackView = UIStackView().then { $0.axis = .horizontal $0.spacing = 8// ..