Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support to Swift Package Manager #237

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ImageViewer.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Pod::Spec.new do |s|
s.swift_version = "5.0"
s.ios.deployment_target = "8.0"

s.source_files = "ImageViewer/Source/**/*"
s.source_files = "Sources/ImageViewer/**/*"
end
12 changes: 6 additions & 6 deletions ImageViewer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
isa = PBXGroup;
children = (
C7897CE31C1350B7006447FB /* Example */,
C7DABE4A1C12245B00F5BD7B /* ImageViewer */,
C7DABE4A1C12245B00F5BD7B /* Sources */,
EB1CEC141C84A4EE00BB27B8 /* ImageViewerTests */,
C7DABE491C12245B00F5BD7B /* Products */,
D72F02FF1F6C02D2009C8A39 /* Frameworks */,
Expand All @@ -217,14 +217,14 @@
name = Products;
sourceTree = "<group>";
};
C7DABE4A1C12245B00F5BD7B /* ImageViewer */ = {
C7DABE4A1C12245B00F5BD7B /* Sources */ = {
isa = PBXGroup;
children = (
EB1CEC171C84A4EE00BB27B8 /* Info.plist */,
C7DABE581C1224EA00F5BD7B /* Source */,
C7DABE581C1224EA00F5BD7B /* ImageViewer */,
C7DABE531C12248600F5BD7B /* Supporting Files */,
);
path = ImageViewer;
path = Sources;
sourceTree = "<group>";
};
C7DABE531C12248600F5BD7B /* Supporting Files */ = {
Expand All @@ -234,7 +234,7 @@
path = "Supporting Files";
sourceTree = "<group>";
};
C7DABE581C1224EA00F5BD7B /* Source */ = {
C7DABE581C1224EA00F5BD7B /* ImageViewer */ = {
isa = PBXGroup;
children = (
EBBFCB961D26CBA2007E7244 /* BlurView.swift */,
Expand All @@ -250,7 +250,7 @@
EBA90E411C8729EB000AA697 /* Transitions */,
EB1CEC1E1C84A54600BB27B8 /* UtilityFunctions.swift */,
);
path = Source;
path = ImageViewer;
sourceTree = "<group>";
};
C7DABE5D1C12275C00F5BD7B /* Extensions */ = {
Expand Down
15 changes: 15 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "ImageViewer",
platforms: [.iOS(.v8)],
products: [
.library(name: "ImageViewer", targets: ["ImageViewer"]),
],
targets: [
.target(name: "ImageViewer", dependencies: [])
]
)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit

public typealias ImageCompletion = (UIImage?) -> Void
public typealias FetchImageBlock = (@escaping ImageCompletion) -> Void
public typealias ItemViewControllerBlock = (_ index: Int, _ itemCount: Int, _ fetchImageBlock: FetchImageBlock, _ configuration: GalleryConfiguration, _ isInitialController: Bool) -> UIViewController
public typealias ItemViewControllerBlock = (_ index: Int, _ itemCount: Int, _ fetchImageBlock: @escaping FetchImageBlock, _ configuration: GalleryConfiguration, _ isInitialController: Bool) -> UIViewController

public enum GalleryItem {

Expand Down
File renamed without changes.
File renamed without changes.