JSPhotoGallery
用于在画廊视图中显示图片和在缩略图网格摘要中显示图片的库
使用说明
实例化画廊
let navController = JSPhotoGallery.create(imageURLs: urls) //Instantiate with Image URLs
let navController = JSPhotoGallery.create(images: images) //Instantiate with Images
let navController = JSPhotoGallery.create(images: images,
shouldStartInFullScreen: true) //Launch in full screen mode
let navController = JSPhotoGallery.create(images: images,
shouldStartInFullScreen: true,
intialIndex: 2) //Launch in full screen mode on 2nd image
展示画廊
present(navController, animated: true)
外观设置
JSPhotoGallery.settings.backgroundColor = .black
JSPhotoGallery.settings.navBackgroundColor = .black
JSPhotoGallery.settings.navTitleColor = .white
JSPhotoGallery.settings.navTitle = "Images"
自定义按钮 - 即将推出