Skip to content

Commit f204fa5

Browse files
committed
added spm BundleUtil, fix warning
1 parent 1a19cd1 commit f204fa5

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ let package = Package(
2222
name: "PasswordTextField",
2323
dependencies: [],
2424
path: "PasswordTextField",
25+
exclude: ["BundleUtil.swift", "Info.plist"],
2526
resources: [.process("Media")]),
2627
]
2728
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// File.swift
3+
//
4+
//
5+
// Created by Sergey Starukhin on 06.03.2021.
6+
//
7+
8+
import Foundation
9+
10+
/// Get the SPM Bundle
11+
public final class BundleUtil: NSObject{
12+
13+
/// Gets the bundle property for the spm module
14+
public static var bundle: Bundle{
15+
Bundle.module
16+
}
17+
}

0 commit comments

Comments
 (0)