Skip to content

Repository files navigation

StringFormatting

XcodeSwiftGitHub tag (latest SemVer)GitHub

What

StringFormatting is a Swift Package Manager package for iOS/tvOS (10.0 and above), watchOS (4.0 and above), and macOS (10.14 and above), under Swift 5.0 and above, defining some useful functions for formatting strings.

publicextensionString{enumAlignment{case left
case center
case right
}func formatted(
width:Int,
leftPadding:Character="",
rightPadding:Character="",
alignment:Alignment=.right
)-> String
func prefixed(by p:String, repeated count:Int)-> String func suffixed(by p:String, repeated count:Int)->Stringfunc repeated(_ count:Int)->String}

Installation

StringFormatting is provided only as a Swift Package Manager package, because I'm moving away from CocoaPods and Carthage, and can be easily installed directly from Xcode.

License

StringFormatting is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages