Post

Replies

Boosts

Views

Created

In Swift, how can I make an attributed string only italicize the second instance of a word in a string?
Let’s say “The little duck marveled at the sight of the bigger ducks playing in the lake” How would I italicize only the second instance of the word “duck”?
Replies
2
Boosts
0
Views
762
Activity
Jun ’21
Is the Set and Get method naming convention wrong in Swift?
Are the naming conventions "setNumber()" and "getNumber()" correct?
Replies
2
Boosts
1
Views
684
Activity
Oct ’22