mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * fix * wip * wip * Model Tic-Tac-Toe board using proper type * wip * wip * wip * wip Co-authored-by: Brandon Williams <mbrandonw@hey.com>
10 lines
251 B
Swift
10 lines
251 B
Swift
import CustomDump
|
|
import Foundation
|
|
|
|
extension String {
|
|
func indent(by indent: Int) -> String {
|
|
let indentation = String(repeating: " ", count: indent)
|
|
return indentation + self.replacingOccurrences(of: "\n", with: "\n\(indentation)")
|
|
}
|
|
}
|