Releases: jtCodes/SwipingMediaView
Releases · jtCodes/SwipingMediaView
2.2.1 - controls view improvements
2.2.0 - Improvements for Developers
What's Changed
- BREAKING CHANGE:
shouldDownloadButton is no longer handle by SwipingMediaItemView, instead it is now handled by SwipingMediaItem
self.mediaItems = [SwipingMediaItem(url: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/TearsOfSteel.mp4",
type: .video),
SwipingMediaItem(url: "https://i.redd.it/8t6vk567khm91.jpg",
type: .image,
shouldShowDownloadButton: true),
SwipingMediaItem(url: "https://i.redd.it/gczavw14bfm91.gif",
type: .gif)]
- Deprecated init with controllers
- new init option to init with SwiftUI views without having to cast to AnyView
SwipingMediaView(views: mediaItems.map {SwipingMediaItemView(mediaItem: $0,
isPresented: $isPresented)},
currentIndex: $currentIndex,
startingIndex: currentIndex)
- new init option to init with just SwipingMediaItem
SwipingMediaView(mediaItems: mediaItems,
isPresented: $isPresented,
currentIndex: $currentIndex,
startingIndex: currentIndex)
2.1.2
2.1.1
2.1.0 - Enhanced Video Support
What's Changed
Videos are now handled more gracefully.
- video plays on appear
- video pauses on disappear
- video is muted by default
- video controls are now interactable
Full Changelog: 2.0.0...2.1.0
2.0.0
sheet presented binding is now required for SwipingMediaItemView due to presentationMode dismiss not working on iOS14
Full Changelog: 1.0.0...2.0.0