Skip to content

Commit

Permalink
Fixes SwiftLint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs committed Mar 16, 2024
1 parent cae92bf commit 84257dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Runestone/Library/DefaultStringAttributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ struct DefaultStringAttributes {

func apply(to attributedString: NSMutableAttributedString) {
let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.tabStops = (0 ..< 20).map {
NSTextTab(textAlignment: .natural, location: CGFloat($0) * tabWidth)
paragraphStyle.tabStops = (0 ..< 20).map { index in
NSTextTab(textAlignment: .natural, location: CGFloat(index) * tabWidth)
}
paragraphStyle.defaultTabInterval = tabWidth
let range = NSRange(location: 0, length: attributedString.length)
Expand Down

0 comments on commit 84257dc

Please sign in to comment.