Skip to content

Commit ede28e8

Browse files
Move here because it makes slightly more sense
1 parent ca4987b commit ede28e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Shared/Extensions/String+CoreFoundation.swift

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import Foundation
22

33
public extension String {
44

5-
var isPresent: Bool { return !isEmpty }
6-
75
func replace(_ string: String, with withString: String) -> String {
86
return replacingOccurrences(of: string, with: withString)
97
}

Sources/Shared/Extensions/String+Empty.swift

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import Foundation
22

33
public extension String {
44

5+
var isPresent: Bool { return !isEmpty }
6+
57
var isEmptyOrWhiteSpace: Bool {
68
return trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).isEmpty
79
}

0 commit comments

Comments
 (0)