---
title: sharegroup
framework: opengles
role: symbol
role_heading: Instance Property
path: opengles/eaglcontext/sharegroup
---

# sharegroup

The context’s sharegroup object. (read-only)

## Declaration

```swift
var sharegroup: EAGLSharegroup { get }
```

## Discussion

Discussion Retrieve the sharegroup of a context when you want to create two or more contexts that share rendering resources. Call init(api:) to initialize the first context, retrieve its sharegroup, and then initialize additional contexts by calling init(api:sharegroup:), passing this sharegroup as the parameter.

## See Also

### Related Documentation

- [init(api:sharegroup:)](opengles/eaglcontext/init(api:sharegroup:)-2rt8m.md)
