Skip to content

Commit

Permalink
fix imports for spm
Browse files Browse the repository at this point in the history
  • Loading branch information
nidegen committed Feb 9, 2020
1 parent 87f6dbd commit 5d6c5a8
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import PackageDescription

let package = Package(
name: "BSImagePicker",
platforms: [.iOS(.v10)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import Foundation
import UIKit

extension ImagePickerController {
@objc func albumsButtonPressed(_ sender: UIButton) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Controller/ImagePickerController+Closure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import Foundation
import UIKit
import Photos

/// Closure convenience API.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Controller/ImagePickerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ImagePickerController: UINavigationController {
// MARK: Public properties
public weak var imagePickerDelegate: ImagePickerControllerDelegate?
public var settings: Settings = Settings()
public var doneButton: UIBarButtonItem = UIBarButtonItem(title: localizedDone, style: .done, target: nil, action: nil)
public var doneButton: UIBarButtonItem = UIBarButtonItem(barButtonSystemItem: .done, target: nil, action: nil)
public var cancelButton: UIBarButtonItem = UIBarButtonItem(barButtonSystemItem: .cancel, target: nil, action: nil)
public var albumButton: UIButton = UIButton(type: .custom)
public var assetStore: AssetStore = AssetStore(assets: [])
Expand Down
2 changes: 1 addition & 1 deletion Sources/Presentation/Zoom/ZoomInteractionController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import Foundation
import UIKit

class ZoomInteractionController: UIPercentDrivenInteractiveTransition, UIGestureRecognizerDelegate {
private weak var navigationController: UINavigationController?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Presentation/Zoom/ZoomTransitionDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import Foundation
import UIKit

class ZoomTransitionDelegate: NSObject, UIViewControllerTransitioningDelegate {
var zoomedOutView: UIImageView? {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Scene/Assets/VideoCollectionViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import Foundation
import UIKit

class VideoCollectionViewCell: AssetCollectionViewCell {
let gradientView = GradientView(frame: .zero)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Scene/Preview/PreviewTitleBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import Foundation
import UIKit
import Photos
import CoreLocation

Expand Down
2 changes: 1 addition & 1 deletion Sources/View/CGSize+Scale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import Foundation
import UIKit

extension CGSize {
func resize(by scale: CGFloat) -> CGSize {
Expand Down
2 changes: 1 addition & 1 deletion Sources/View/ImageViewLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import Foundation
import UIKit

struct ImageViewLayout {
static func frameForImageWithSize(_ image: CGSize, previousFrame: CGRect, inContainerWithSize container: CGSize, usingContentMode contentMode: UIView.ContentMode) -> CGRect {
Expand Down

0 comments on commit 5d6c5a8

Please sign in to comment.