Swift ImageSlideshowのPagerの色、位置を変更する
https://github.com/zvonicek/ImageSlideshow
こちらのライブラリの話
デフォルトだと画像とページャーガ重なっていて見づらいので、色を変えて画像の下にくるようにする
var slideShow = ImageSlideshow() let pager = UIPageControl() pager.pageIndicatorTintColor = UIColor.lightGray pager.currentPageIndicatorTintColor = UIColor.black slideShow.pageIndicator = pager slideShow.pageIndicatorPosition = PageIndicatorPosition(horizontal: .center, vertical: .under) let imageSources = [ImageSource(imageString: "img1")!, ImageSource(imageString: "img2")!, ImageSource(imageString: "img3")!, ImageSource(imageString: "img4")!] slideShow.setImageInputs(imageSources)
デフォルトこっちの方がいい気が。。以上です