Vertically rotated UIPageControl taking too much space
问题 I used CGAffineTransform to rotate a horizontal UIPageControl vertical. But when I added it besides my collection view it's taking too much width. And when I add a width anchor on it, the UIPageControl disappears. noticesPagingIndicator = UIPageControl() let angle = CGFloat.pi/2 noticesPagingIndicator.transform = CGAffineTransform(rotationAngle: angle) NSLayoutConstraint.activate([ // noticesPagingIndicator.widthAnchor.constraint(equalToConstant: 30), noticesPagingIndicator.leadingAnchor