---
title: localizedName
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/host/localizedname
---

# localizedName

Returns the name used as by default when publishing NSNetServices.

## Declaration

```swift
var localizedName: String? { get }
```

## Return Value

Return Value A string containing the computer name.

## Discussion

Discussion This is the name displayed in the Finder sidebar, as well as in the Sharing preference panel. This method only returns an NSString when sent to the current() instance, all other instances currently return nil. This property is key-value observable.

## See Also

### Getting Host Information

- [address](foundation/host/address.md)
- [addresses](foundation/host/addresses.md)
- [name](foundation/host/name.md)
- [names](foundation/host/names.md)
