Skip to content

Commit

Permalink
Merge pull request #14 from dreipol/feature/localized_args
Browse files Browse the repository at this point in the history
Feature/localized args
  • Loading branch information
lailabecker authored Feb 26, 2021
2 parents 2c9fd22 + 9880d4a commit a7128ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Sources/dreiKit/String+Tools.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public extension String {
return isLocalized ? localized : nil
}

func localized(_ args: CVarArg...) -> String {
String(format: self.localized, arguments: args)
}

func removingWhitespace() -> String {
return filter { !$0.isWhitespace }
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/dreiKit/UIScrollView+ScrollTo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2019 dreipol. All rights reserved.
//

//import DogSwift
// import DogSwift
import Foundation
import UIKit.UIScrollView

Expand Down
2 changes: 1 addition & 1 deletion dreiKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "dreiKit"
s.version = "1.0.3"
s.version = "1.0.4"
s.summary = "A short description of dreiKit."
s.homepage = "https://github.com/dreipol/dreiKit"
s.license = { type: 'MIT', file: 'LICENSE' }
Expand Down

0 comments on commit a7128ca

Please sign in to comment.