ARTGroup.m 465 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <React/ARTGroup.h>
  8. @implementation ARTGroup
  9. - (void)renderLayerTo:(CGContextRef)context
  10. {
  11. if (!CGRectIsEmpty(self.clipping)) {
  12. CGContextClipToRect(context, self.clipping);
  13. }
  14. for (ARTNode *node in self.subviews) {
  15. [node renderTo:context];
  16. }
  17. }
  18. @end