Skip to content

Commit

Permalink
Fix localization setup issue in HandySwiftUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Oct 30, 2024
1 parent eff8780 commit ee7deaf
Show file tree
Hide file tree
Showing 4 changed files with 4,109 additions and 41 deletions.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PackageDescription

let package = Package(
name: "HandySwiftUI",
defaultLocalization: "en",
platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16), .visionOS(.v1), .watchOS(.v9)],
products: [.library(name: "HandySwiftUI", targets: ["HandySwiftUI"])],
dependencies: [.package(url: "https://github.com/FlineDev/HandySwift.git", from: "4.2.0")],
Expand Down
2 changes: 1 addition & 1 deletion Sources/HandySwiftUI/Extensions/TextExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ extension Text {
let suffix = String(formatString[(previousRange?.upperBound ?? formatString.startIndex)..<formatString.endIndex])
subtexts.append(Text(suffix))

self = subtexts.reduce(Text("")) { $0 + $1 }
self = subtexts.reduce(Text(verbatim: "")) { $0 + $1 }
}
}

Expand Down
Loading

0 comments on commit ee7deaf

Please sign in to comment.