Browse Source

Move string extension method to the right place.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
668a242654
  1. 1
      Clocker/ClockerUnitTests/ClockerUnitTests.swift
  2. 6
      Clocker/Overall App/AppDefaults.swift
  3. 4
      Clocker/Overall App/String + Additions.swift

1
Clocker/ClockerUnitTests/ClockerUnitTests.swift

@ -440,5 +440,4 @@ class ClockerUnitTests: XCTestCase {
XCTAssertNil(defaults?.object(forKey: "test1"))
XCTAssertNil(defaults?.object(forKey: "test2"))
}
}

6
Clocker/Overall App/AppDefaults.swift

@ -51,12 +51,6 @@ class AppDefaults {
}
}
extension String {
func localized() -> String {
return NSLocalizedString(self, comment: "Title for \(self)")
}
}
extension UserDefaults {
// Use this with caution. Exposing this for debugging purposes only.
func wipe(for bundleID: String) {

4
Clocker/Overall App/String + Additions.swift

@ -14,4 +14,8 @@ extension String {
return filteredAddress
}
func localized() -> String {
return NSLocalizedString(self, comment: "Title for \(self)")
}
}

Loading…
Cancel
Save