<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIScrollTypeMask",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIScrollTypeMask"
  },
  "title" : "UIScrollTypeMask"
}
-->

# UIScrollTypeMask

A bit mask identifying the scroll type of a pan gesture.

```
struct UIScrollTypeMask
```

## Topics

### Scroll types

[`static var all: UIScrollTypeMask`](/documentation/UIKit/UIScrollTypeMask/all)

A scroll type that’s either discrete or continuous.

[`static var continuous: UIScrollTypeMask`](/documentation/UIKit/UIScrollTypeMask/continuous)

A continuous scroll type from a device, like a trackpad.

[`static var discrete: UIScrollTypeMask`](/documentation/UIKit/UIScrollTypeMask/discrete)

A discrete scroll type from a device, like a mouse.

### Initializer

[`init(rawValue: Int)`](/documentation/UIKit/UIScrollTypeMask/init(rawValue:))

Creates a new scroll type mask from the raw value.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`OptionSet`](/documentation/Swift/OptionSet)

---

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)