<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSString/strings(byAppendingPaths:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSString(im)stringsByAppendingPaths:"
  },
  "title" : "strings(byAppendingPaths:)"
}
-->

# strings(byAppendingPaths:)

Returns an array of strings made by separately appending to the receiver each string in a given array.

```
func strings(byAppendingPaths paths: [String]) -> [String]
```

## Parameters

`paths`

An array of `NSString` objects specifying paths to add to the receiver.

## Return Value

An array of string objects made by separately appending each string in `paths` to the receiver, preceded if necessary by a path separator.

## Discussion

Note that this method only works with file paths (not, for example, string representations of URLs). See [`appendingPathComponent(_:)`](/documentation/Foundation/NSString/appendingPathComponent(_:)) for an individual example.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)