Latest 1.2.0
Homepage https://github.com/inamiy/YIInnerShadowView
License Beerware If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.
Platforms ios 5.0, requires ARC
Frameworks QuartzCore
Authors

Inner-shadow UIView/CALayer for iOS.

ScreenShot1

How to use

YIInnerShadowView* innerShadowView = [[YIInnerShadowView alloc] initWithFrame:frame];
innerShadowView.shadowRadius = 5;
innerShadowView.shadowMask = YIInnerShadowMaskVertical;
[self.view addSubview:innerShadowView];

YIInnerShadowMask

typedef enum {
    YIInnerShadowMaskNone       = 0,
    YIInnerShadowMaskTop        = 1 << 1,
    YIInnerShadowMaskBottom     = 1 << 2,
    YIInnerShadowMaskLeft       = 1 << 3,
    YIInnerShadowMaskRight      = 1 << 4,
    YIInnerShadowMaskVertical   = YIInnerShadowMaskTop | YIInnerShadowMaskBottom,
    YIInnerShadowMaskHorizontal = YIInnerShadowMaskLeft | YIInnerShadowMaskRight,
    YIInnerShadowMaskAll        = YIInnerShadowMaskVertical | YIInnerShadowMaskHorizontal
} YIInnerShadowMask;

Acknowledgement

Main idea is from Matt Wilding:

http://stackoverflow.com/questions/4431292/inner-shadow-effect-on-uiview-layer

License

YIInnerShadowView is available under the Beerware license.

If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

Latest podspec

{
    "name": "YIInnerShadowView",
    "version": "1.2.0",
    "license": {
        "type": "Beerware",
        "text": "If we meet some day, and you think this stuff is worth it, you can buy me a beer in return."
    },
    "homepage": "https://github.com/inamiy/YIInnerShadowView",
    "authors": {
        "Yasuhiro Inami": "[email protected]"
    },
    "summary": "Inner-shadow UIView/CALayer for iOS.",
    "screenshots": [
        "https://raw.githubusercontent.com/inamiy/YIInnerShadowView/master/Screenshots/screenshot.jpg"
    ],
    "source": {
        "git": "https://github.com/inamiy/YIInnerShadowView.git",
        "tag": "1.2.0"
    },
    "source_files": "Classes/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "5.0"
    },
    "frameworks": "QuartzCore"
}

Pin It on Pinterest

Share This