---
title: "Discussion on \"[swift] Substring는 왜 있는 걸까?\" | Hashnode"
description: "Discussion on \"[swift] Substring는 왜 있는 걸까?\". String 타입을 가지고 메서드로 변형을 하게 되면 이상하게 return 타입이 String 이 아니고 Substring 이다.\n\n애플 공식문서가 말하길\nSubstring 타입은 String 타입과 거의 동일한 메서드를 가지고 있기 때문에 String처럼 사용할 수 있는 타입이"
url: "https://hashnode.com/posts/swift-substring/62f6115269fa1793160bf359"
---

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

Discussion

# [\[swift\] Substring는 왜 있는 걸까?](https://redlog.hashnode.dev/swift-substring?utm_source=hashnode&utm_medium=feed)

String 타입을 가지고 메서드로 변형을 하게 되면 이상하게 return 타입이 String 이 아니고 Substring 이다. 애플 공식문서가 말하길 Substring 타입은 String 타입과 거의 동일한 메서드를 가지고 있기 때문에 String처럼 사용할 수 있는 타입이

Mar 18, 2022 · 1 min read · redlog.hashnode.dev  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#substring](https://hashnode.com/tag/substring)

## Written by

[Red](https://hashnode.com/@cherrishRED)

@cherrishRED

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

iOS developer

Hi there this is red🔴

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
