<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CALayer/allowsGroupOpacity",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CALayer(py)allowsGroupOpacity"
  },
  "title" : "allowsGroupOpacity"
}
-->

# allowsGroupOpacity

A Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

```
var allowsGroupOpacity: Bool { get set }
```

## Discussion

When the value is <doc://com.apple.documentation/documentation/Swift/true> and the layer’s opacity property value is less than `1.0`, the layer is allowed to composite itself as a group separate from its parent. This gives correct results when the layer contains multiple opaque components, but may reduce performance.

The default value is read from the boolean `UIViewGroupOpacity` property in the main bundle’s `Info.plist` file. If no value is found, the default value is <doc://com.apple.documentation/documentation/Swift/true> for apps linked against the iOS 7 SDK or later and <doc://com.apple.documentation/documentation/Swift/false> for apps linked against an earlier SDK.

---

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)