Skip to content

Releases: jtCodes/SwipingMediaView

2.2.1 - controls view improvements

04 Jul 05:37
051dc84
Compare
Choose a tag to compare
  • prevent controls view tap from affecting its visibility
  • change download image button to indicate image save success

2.2.0 - Improvements for Developers

04 Jul 05:09
208f7e2
Compare
Choose a tag to compare

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

05 Feb 16:29
Compare
Choose a tag to compare
  • fix the bug where video is not looping

2.1.1

05 Feb 16:17
Compare
Choose a tag to compare
  • fix the bug where video is not autoplaying when it's the first item in the list
  • videos are now not muted by default

2.1.0 - Enhanced Video Support

17 Nov 04:11
f2959b0
Compare
Choose a tag to compare

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

17 Sep 02:00
Compare
Choose a tag to compare

sheet presented binding is now required for SwipingMediaItemView due to presentationMode dismiss not working on iOS14

Full Changelog: 1.0.0...2.0.0

1.0.0

11 Sep 06:32
1c088b0
Compare
Choose a tag to compare
Update README.md