Material: Regarding Shadow Effect

Created on 22 May 2019  路  8Comments  路  Source: CosmicMind/Material

i am not getting any shadow after updating the latest version of Material (3.1.2). My older version was (2.9.4) even if i have tried in (2.16.4 +) versions but i am getting same issue like i am not getting shadow effect in any of my buttons and other stuff. Note that in my older version (2.9.4) shadow effects work perfectly but now i need to convert my project to latest version of swift code. in that older version (2.9.4) is no longer supported swift 4.2. so, please resolve this issue as soon as possible.

help wanted investigate material

All 8 comments

Hey! Before resolving the issue as soon as possible, we first need to confirm that this is an issue on our side. Can you please share some code showing how you set shadow effect?

Here is my code and these same parameters i am setting in runtime attributes in Interface builder as well for more info refer below link of screenshot.

https://ibb.co/d0cZ9zx

stackBaseView = [[UIView alloc] initWithFrame:CGRectMake(20, frame.size.height-(IS_IPHONE_X ? 45 : 60), frame.size.width-40, 40)];
stackBaseView.backgroundColor = [UIColor clearColor];
stackBaseView.layer.shadowColor = [UIColor blackColor].CGColor;
stackBaseView.layer.masksToBounds = NO;
stackBaseView.layer.shadowOffset = CGSizeMake(0, 0);
stackBaseView.layer.shadowRadius = 3;
stackBaseView.layer.shadowOpacity = 0.12;

How is this related to Material library?

This is working fine before updating the library to latest version but once it is updated. We are not getting any shadow on button, view, textview anything.

@codal-hardik and @avagh Do you both talk about same project or @codal-hardik you are experiencing the same thing in a different project?

@avagh Do you set shadow using code or through storyboards?

Yes i am talking about the same project as @avagh talking.

@OrkhanAlikhanov Yes from the storyboard we are setting the shadow.

@OrkhanAlikhanov this issue seems related to the view layer. So, this issue was not from your end. We have resolved this from our end.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tato469 picture tato469  路  17Comments

OrkhanAlikhanov picture OrkhanAlikhanov  路  17Comments

kylebrowning picture kylebrowning  路  15Comments

ijameelkhan picture ijameelkhan  路  23Comments

sovata8 picture sovata8  路  15Comments