---
title: "Discussion on \"Stop Using .lowercased() to Compare Strings in Swift\" | Hashnode"
description: "Discussion on \"Stop Using .lowercased() to Compare Strings in Swift\". When developing in Swift, a common task you may come across is comparing strings. However, did you know that using the .lowercased() method might not be the best way to do it?\nLet's take a look at an example where we compare two strings using .lowerc..."
url: "https://hashnode.com/posts/stop-using-lowercased-to-compare-strings-in-swift/65f6749f5e201912c4915b62"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stop Using .lowercased() to Compare Strings in Swift](https://huypham85.hashnode.dev/stop-using-lowercased-to-compare-strings-in-swift?utm_source=hashnode&utm_medium=feed)

When developing in Swift, a common task you may come across is comparing strings. However, did you know that using the .lowercased() method might not be the best way to do it? Let's take a look at an example where we compare two strings using .lowerc...

Mar 17, 2024 · 2 min read · huypham85.hashnode.dev  
Updated Apr 3, 2024  
Read the article

-   [#swifttips](https://hashnode.com/tag/swifttips)
-   [#ios](https://hashnode.com/tag/ios)
-   [#ios-app-development](https://hashnode.com/tag/ios-app-development)
-   [#swift](https://hashnode.com/tag/swift)
-   [#mobile-development](https://hashnode.com/tag/mobile-development)

## Written by

[Phạm Trung Huy](https://hashnode.com/@huypham85)

@huypham85 · Hanoi, Vietnam

  
[View profile](https://hashnode.com/@huypham85)

iOS Developer @Rikkeisoft

👋 I am a Mobile Developer based in Vietnam. My passion lies in continuously pushing the boundaries of my skills in this dynamic field.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
