Enumerating and Counting Text Components in Swift

Photo by Pixabay from Pexels

It’s sometimes necessary either to enumerate, or to just count various components of a text in our apps. Examples of that would be to find the total number of characters, words, paragraphs, lines, and more in the entire or part of the text. Quite probably the first thought…

--

--

--

An iOS & macOS app maker writing code in Swift. Author of countless programming tutorials. Content creator. https://serialcoder.dev

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

7 Great Reasons To Unit Test — iOS Development

How To Launch A Web Server Using EC2 and EFS?

I switched from Vim to Spacemacs & Elixir. Here’s my config & reasons

Building a CSS game without HTML or JS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gabriel Theodoropoulos

Gabriel Theodoropoulos

An iOS & macOS app maker writing code in Swift. Author of countless programming tutorials. Content creator. https://serialcoder.dev

More from Medium

Creating Enums with Custom Raw Type in Swift

How to adapt your View for each device

How to Use the @FocusState Property Wrapper in SwiftUI

Read local file with Combine