Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit c6dc212

Browse files
committed
Swift 3 fix StringResource
1 parent 720a6ef commit c6dc212

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Library/Core/StringResource.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public protocol StringResourceType {
1717
var tableName: String { get }
1818

1919
/// Bundle this string is in
20-
var bundle: NSBundle { get }
20+
var bundle: Bundle { get }
2121

2222
/// Locales of the a localizable string
2323
var locales: [String] { get }
@@ -35,15 +35,15 @@ public struct StringResource: StringResourceType {
3535
public let tableName: String
3636

3737
/// Bundle this string is in
38-
public let bundle: NSBundle
38+
public let bundle: Bundle
3939

4040
/// Locales of the a localizable string
4141
public let locales: [String]
4242

4343
/// Comment directly before and/or after the string, if any
4444
public let comment: String?
4545

46-
public init(key: String, tableName: String, bundle: NSBundle, locales: [String], comment: String?) {
46+
public init(key: String, tableName: String, bundle: Bundle, locales: [String], comment: String?) {
4747
self.key = key
4848
self.tableName = tableName
4949
self.bundle = bundle

0 commit comments

Comments
 (0)