BonMot icon indicating copy to clipboard operation
BonMot copied to clipboard

Beautiful, easy attributed strings in Swift

Results 58 BonMot issues
Sort by recently updated
recently updated
newest added

```SWIFT let htmlStr = "You can parse HTML with strong, em, and even nested strong and em tags." let emStr = StringStyle( .link(URL("emStr://")), .color(UIColor.red), .underline(.single, nil) ) let strongStr =...

If a string looks like `Gilbert & Sullivan`, the unescaped `&` will break XML parsing. The string must be escaped like this: `Gilbert & Sullivan`. Other characters must be escaped...

Hi ,I cannot build succeed in Xcode 13.0 for Swift 5.x Error as: Enum cases with associated values cannot be marked potentially unavailable with '@available'

iOS 15 SDK introduced [StringStyle struct](https://developer.apple.com/documentation/foundation/stringstyle). So it's conflicting with the one from the framework and causes this error: `'StringStyle' is ambiguous for type lookup in this context`

Hey Zev/Rightpointers! Hope you're doing well. I'm seeing some weird behavior with Dynamic Type and `application.enableAdaptiveContentSizeMonitor()` I'm wondering if anyone has context on. I have two `StringStyle`s: one just uses...

I cannot make locaization from english to arabic example `let text = "List of %@'s devices".localizedWithParameters(name)` In the localized string i have the following : `"List of %@'s devices"="الأجهزة %@'الخاصة";`...

I'm getting this error in the AppDelegate, but I'm not sure what the problem might be. Any help is appreciated, thanks! (the exact line that has the error is: "let...

https://swift.org/source-compatibility/#adding-projects According to the acceptance criteria, eligible projects must "add value not already included in the suite." I think BonMot satisfies this because of its extensive use of variable lists...

For Apps supporting < iOS 13, it would be nice to expose a `.colorProvider: (UITraitCollection) -> UIColor` example callsite: ```swift let label: UILabel = { let label = UILabel() label.bonMotStyle...