Skip to content

Commit

Permalink
Fix AV extension imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-dev committed Jan 12, 2021
1 parent 9c17719 commit 452949a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MediaSlideshow.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "MediaSlideshow"
s.version = "2.0.4"
s.version = "2.0.5"
s.summary = "Image (and optionally, video) slideshow written in Swift with circular scrolling, timer and full screen viewer"

# This description is used to generate tags and improve search results.
Expand Down
1 change: 1 addition & 0 deletions MediaSlideshow/Classes/AV/AVPlayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import AVFoundation
import Foundation
import UIKit

open class AVPlayerView: UIView {
open override class var layerClass: AnyClass {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import Foundation
#if SWIFT_PACKAGE
import MediaSlideshow
#endif
import UIKit


open class ImageAndVideoSlideshowDataSource: NSObject, MediaSlideshowDataSource {
public enum Source {
Expand Down
1 change: 1 addition & 0 deletions MediaSlideshow/Classes/AV/MediaSlideshowAVSlide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import AVKit
#if SWIFT_PACKAGE
import MediaSlideshow
#endif
import UIKit

public class MediaSlideshowAVSlide: AVPlayerView, MediaSlideshowSlide {
private let source: AVSource
Expand Down
1 change: 1 addition & 0 deletions MediaSlideshow/Classes/AV/UIView+AV.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import AVFoundation
import Foundation
import UIKit

extension UIView {
func embed(_ view: UIView) {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ MediaSlideshow is available through [CocoaPods](http://cocoapods.org). To instal
it, simply add the following line to your Podfile:

```ruby
pod 'MediaSlideshow', '~> 2.0.4'
pod 'MediaSlideshow', '~> 2.0.5'
```

### Carthage
To integrate MediaSlideshow into your Xcode project using Carthage, specify it in your Cartfile:

```ruby
github "pm-dev/MediaSlideshow" ~> 2.0.4
github "pm-dev/MediaSlideshow" ~> 2.0.5
```

Carthage does not include InputSources for external providers (due to dependency on those providers) so you need to grab the one you need from `MediaSlideshow/Classes/InputSources` manually.
Expand Down

0 comments on commit 452949a

Please sign in to comment.