最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[已解决]Swift实现图片显示和预览和缩放

Swift crifan 4024浏览 0评论

需要实现,类似于微信中发送图片后:

图片的显示

点击后,显示大图

且支持通过手势去缩放图片

swift image lib

Swift – 图像控件(UIImageView)的用法

GitHub – onevcat/Kingfisher: A lightweight and pure Swift implemented library for downloading and caching image from the web.

GitHub – gavinbunney/Toucan: Fabulous Image Processing in Swift

GitHub – zalando/MapleBacon: MapleBacon is a Swift image download and caching library.

GitHub – Haneke/HanekeSwift: A lightweight generic cache for iOS written in Swift with extra love for images.

GitHub – daltoniam/Skeets: Fetch, cache, and display images via HTTP in Swift.

swift image view lib

GitHub – NYTimes/NYTPhotoViewer: A modern photo viewing experience for iOS.

GitHub – Alamofire/AlamofireImage: AlamofireImage is an image component library for Alamofire

GitHub – seatgeek/SGImageCache: A flexible image caching library for image rich iOS applications

swift 图片显示 库

SwiftGuide/Featured.md at master · ipader/SwiftGuide · GitHub

GitHub – Tim9Liu9/TimLiu-iOS: 自己总结的iOS、mac开源项目及库,持续更新。。。。

GitHub – mwaterfall/MWPhotoBrowser: A simple iOS photo and video browser with grid view, captions and selections.

GitHub – MakeZL/MLSwiftBasic: UI and animation of the basic framework of swift

看了半天,暂时决定用:

关于下载图片的话,去用:

Swift 项目中可能用到的第三方框架 – 简书

-》

GitHub – onevcat/Kingfisher: A lightweight and pure Swift implemented library for downloading and caching image from the web.

某人的解释:

Swift中的图片处理库Kingfisher – 简书

有空可以去把

下载图片期间,等待指示器

GitHub – ninjaprox/NVActivityIndicatorView: Collection of nice loading animations

加上看看效果

后来是参考别人代码,自己整理后,可以实现对应的效果了:

【整理】swift图片查看方面的库

[已解决]swift中实现图片的捏pinch去缩放图片

转载请注明:在路上 » [已解决]Swift实现图片显示和预览和缩放

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.185 seconds, using 22.14MB memory