/**
 * Copyright (c) 2015-present, Horcrux.
 * All rights reserved.
 *
 * This source code is licensed under the MIT-style license found in the
 * LICENSE file in the root directory of this source tree.
 */

#import "RNSVGClipPath.h"

@implementation RNSVGClipPath

- (void)parseReference
{
    self.dirty = false;
    [self.svgView defineClipPath:self clipPathName:self.name];
}


- (BOOL)isSimpleClipPath
{
    NSArray<UIView*> *children = self.subviews;
    if (children.count == 1) {
        UIView* child = children[0];
        if ([child class] != [RNSVGGroup class]) {
            return true;
        }
    }
    return false;
}

@end
