Tagged: String
There are 18 items tagged #String.
And there a lots of other tags to explore.
There are 18 items tagged #String.
And there a lots of other tags to explore.
SwiftUI lacks the support for the old NSAttributedString but fully supports this new type. On the other hand, UIKit supported NSAttributedString but lacked the support of AttributedString in most APIs. Learn how to convert between the two, so you can use any of them in the platform you want.
Learn how to use an old NSAttributedString inside a SwiftUI app.
Learn how to use the new AttributedString inside UIKit components.
Learn how to turn ["John", "Alice", "Bob"] into "John, Alice, Bob".
There might be several reasons that cause this error. I will share the solution that works for me.
If you need a string that spans several lines, Swift has a multiline string literal that you can use.
Learn how to uppercase to only the first letter of a word and sentence.
Learn how to check if a string contains another string, numbers, uppercased/lowercased string, or special characters.
String comparison is an essential operation for day to day job. Swift provides a few variations for this. We will visit them in this article.
Learn a proper way to sort an array of strings in each circumstance.
Learn how to format a Float and Double string.
In iOS 14, we have a new way to put images along with texts.
Learn how to check your app version strings are higher or lower.
Learn different ways to split a string into an array of substrings.
See all tags.