JoshDSommer / nativescript-ngx-shadow

Angular directive to apply shadows to native elements according to the elevation level guidelines of material design specification
Apache License 2.0
9 stars 6 forks source link

Allow X and Y position for iOS shadowOffest #13

Open zurie opened 5 years ago

zurie commented 5 years ago

Would be nice to use X,Y offset

            this.myLabel.ios.layer.masksToBounds = false;
            this.myLabel.ios.layer.shadowOpacity = .3;
            this.myLabel.ios.layer.shadowRadius = 0;
            this.myLabel.ios.layer.shadowColor = new Color('white').ios.CGColor;
            this.myLabel.ios.layer.shadowOffset = CGSizeMake(1.0, 1.0);

Hard to use shadows when you are forced to have only the Y offset. Am i Missing something that makes this easier with your plugin?