Skip to content

Commit 911c45c

Browse files
committed
добавлен UIImage в библиотеку
1 parent 315809f commit 911c45c

4 files changed

Lines changed: 27 additions & 1 deletion

File tree

Sources/iOSIntPackage/DataProvider.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Created by Maxim on 2020. 10. 12..
66
//
77

8-
import Foundation
8+
import UIKit
99

1010
public final class DataProvider {
1111

@@ -19,4 +19,12 @@ public final class DataProvider {
1919

2020
return "Здравствуйте, \(student)! Вот ваш бутерброд!" + iOSIntPackage().text
2121
}
22+
23+
public func fetchImage() -> UIImage {
24+
return UIImage(
25+
named: "checkmark",
26+
in: Bundle(for: DataProvider.self),
27+
compatibleWith: nil
28+
)!
29+
}
2230
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "checkmark.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}
Binary file not shown.

0 commit comments

Comments
 (0)