---
title: PortalComponent.SurfaceStyle
framework: realitykit
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: realitykit/portalcomponent/surfacestyle
---

# PortalComponent.SurfaceStyle

The size of the flat plane mesh that RealityKit generates for a portal.

## Declaration

```swift
struct SurfaceStyle
```

## Overview

Overview The factory entry points makePortal(surfaceStyle:boundaryStyle:boundaryMode:) and configure(world:portalEntity:surfaceStyle:boundaryStyle:boundaryMode:) use this value to build a ModelComponent whose mesh is a plane on the entity’s local XY plane, centered at the entity’s origin. The portal mesh size is independent of the clipping or crossing boundary, which you configure with PortalComponent.BoundaryStyle.

## Topics

### Initializers

- [init(width:height:)](realitykit/portalcomponent/surfacestyle/init(width:height:).md)

### Instance Properties

- [height](realitykit/portalcomponent/surfacestyle/height.md)
- [width](realitykit/portalcomponent/surfacestyle/width.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
