pierreperrin / shadowview Goto Github PK
View Code? Open in Web Editor NEWAn iOS Library that makes shadows management easy on UIView.
Home Page: https://pierreperrin.github.io/ShadowView/
License: MIT License
An iOS Library that makes shadows management easy on UIView.
Home Page: https://pierreperrin.github.io/ShadowView/
License: MIT License
I render at func draw in TabbleViewCell.
@PierrePerrin Hi, does ShadowView support circle view with cornerRadius, I did tried it out. here is my code:
When I add the shadowContainerView be the subview.
It's so slow and feel lag.
ShadowView *shadowContainerView = [[ShadowView alloc] init];
shadowContainerView.frame = self.bounds;
shadowContainerView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
shadowContainerView.shadowOffset = CGSizeMake(0, self.shadowOffset);
shadowContainerView.shadowRadius = self.radius;
shadowContainerView.shadowScale = 0.9;
CGRect frame = self.frame;
frame.size.height = self.height+self.shadowOffset;
self.frame = frame;
[self addSubview: shadowContainerView]; //this line make the program so slow and lag
[shadowContainerView addSubview:_frontImgView];
_frontImgView.center = shadowContainerView.center;
Hello!
I add ShadowView in my TableViewCell, but shadow generation is too long.
================================================================= Main Thread Checker: UI API called on a background thread: -[UIView layer] PID: 70222, TID: 17479263, Thread name: (none), Queue name: com.apple.root.utility-qos, QoS: 17 Backtrace: 4 ShadowView 0x000000010afb5e5d _T0So6UIViewC10ShadowViewE7asImageSo7UIImageCfg + 29 5 ShadowView 0x000000010afabf1d _T010ShadowViewAAC16createLayerImage33_9B9E92D7988F296C5B194A5602A768AFLLyyF + 61 6 ShadowView 0x000000010afabe96 _T010ShadowViewAAC06updateA0yyFyycfU_ + 150 7 ShadowView 0x000000010afabedc _T010ShadowViewAAC06updateA0yyFyycfU_TA + 12 8 ShadowView 0x000000010afacad9 _T0Ix_IyB_TR + 41 9 libdispatch.dylib 0x000000010f6f63f7 _dispatch_call_block_and_release + 12 10 libdispatch.dylib 0x000000010f6f743c _dispatch_client_callout + 8 11 libdispatch.dylib 0x000000010f703499 _dispatch_root_queue_drain + 1444 12 libdispatch.dylib 0x000000010f702e97 _dispatch_worker_thread3 + 132 13 libsystem_pthread.dylib 0x000000010fbba5a2 _pthread_wqthread + 1299 14 libsystem_pthread.dylib 0x000000010fbba07d start_wqthread + 13
I tried to use it with a collection view
I could'n find the:
shadowView.highPerformanceBlur
Could you give more detailed info about how to use it programmatically?
I would love to use this framework, it seems awesome!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.