Coder Social home page Coder Social logo

dwurecyclingalert's People

Contributors

bryant1410 avatar daidoujichen avatar diwu avatar testpersonal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dwurecyclingalert's Issues

Casts for XCode 10.1 version

Casts for correct XCode 10.1 build:

diff --git a/RecyclingAlert/DWURecyclingAlert/DWURecyclingAlert.m b/RecyclingAlert/DWURecyclingAlert/DWURecyclingAlert.m
index 122336b..8ffcc32 100644
--- a/RecyclingAlert/DWURecyclingAlert/DWURecyclingAlert.m
+++ b/RecyclingAlert/DWURecyclingAlert/DWURecyclingAlert.m
@@ -246,7 +246,7 @@ static void dwu_swizzleDrawRectIfNotYet(CALayer *layer) {
     if (![layer.delegate isKindOfClass:[UIView class]]) {
         return;
     }
-    UIView *containerView = layer.delegate;
+    UIView *containerView = (UIView *)layer.delegate;
     if (!dwu_implementsSelector(containerView, @selector(drawRect:))) {
         return;
     }
@@ -316,7 +316,7 @@ - (void)dwu_scanLayerHierarchyRecursively {
 }
 
 - (UIView *)dwu_findCell {
-    UIView *containerView = self.delegate;
+    UIView *containerView = (UIView *) self.delegate;
     if (!containerView) {
         return nil;
     }
@@ -338,7 +338,7 @@ - (UIView *)dwu_findCell {
 
 - (void)dwu_injectLayer: (CALayer *)layer withCellDelegate:(UIView *)cellDelegate {
     if (layer.delegate && [layer.delegate isKindOfClass:[UIView class]]) {
-        UIView *containerView = layer.delegate;
+        UIView *containerView = (UIView *) layer.delegate;
         containerView.dwuCellDelegate = cellDelegate;
     }
 }
@@ -465,4 +465,4 @@ static void dwu_generateTimeLabelForUICollectionViewCell() {
         dwu_generateTimeLabelForUICollectionViewCell();
     }
 }
-#endif
\ No newline at end of file
+#endif

It is not working with layer in UIView

I try to use this but It cannot render the layer on UIView such as borderColor

screen shot 2558-06-19 at 11 48 40 pm

following the figure
you will see my 3pt border color on bookmark button has not been rendered.

Support for UICollectionView

Hi there,

It would be great to extend this component to support UICollectionViews and UICollectionViewCells.

Thanks

Support for UICollectionView headers and footers

UICollectionView headers and footers are created by using the [dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:] method. It would be a very useful addition if recycling alerts and timings were displayed for headers and footers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.