Skip to content

Commit ee4ea43

Browse files
committed
images added
1 parent 2c587c1 commit ee4ea43

9 files changed

Lines changed: 62 additions & 25 deletions

File tree

Package.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ let package = Package(
2020
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2121
.target(
2222
name: "iOSIntPackage",
23-
dependencies: []),
24-
.testTarget(
25-
name: "iOSIntPackageTests",
26-
dependencies: ["iOSIntPackage"])
23+
dependencies: [])
2724
]
2825
)

Sources/iOSIntPackage/Images.swift

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// File.swift
3+
//
4+
//
5+
// Created by Maxim Abakumov on 2021. 01. 04.
6+
//
7+
// Copyright © 2020, Maxim Abakumov. MIT License.
8+
//
9+
10+
import UIKit
11+
12+
public struct Images {
13+
14+
public static var checkmark: UIImage {
15+
return getPdfImage(by: "checkmark")
16+
}
17+
18+
public static var sunset: UIImage {
19+
return getPdfImage(by: "sunset")
20+
}
21+
22+
public static var mountain: UIImage {
23+
return getPdfImage(by: "mountain")
24+
}
25+
26+
private static func getPdfImage(by name: String) -> UIImage {
27+
28+
guard let image = UIImage(
29+
named: name,
30+
in: Bundle.module,
31+
compatibleWith: nil
32+
) else {
33+
fatalError("Error retrieving image from path")
34+
}
35+
return image
36+
}
37+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "matterhorn_sm.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "sunset.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}
Binary file not shown.

Tests/LinuxMain.swift

Lines changed: 0 additions & 7 deletions
This file was deleted.

Tests/iOSIntPackageTests/XCTestManifests.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

Tests/iOSIntPackageTests/iOSIntPackageTests.swift

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)