Latest 1.3
Homepage https://github.com/noblakit01/SwiftyShadow
License MIT
Platforms ios 8.0, requires ARC
Authors

Helper Libraries to generate wonderful shadow in Swift iOS.

Screenshots

Requirements

  • iOS 8.0+
  • Xcode 8+
  • Swift 3

Installation

CocoaPods

To integrate PhotoCollectionView into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'SwiftyShadow', '~> 1.3'

Then, run the following command:

$ pod install

Manually

  • Drag and drop Sources folder into your project.

Usage

Inner Shadow in View

Use SwiftyInnerShadowView class as UIView to make this View has inner shadow.

  • Use Storyboard

Set SwiftyInnerShadowView as UIView Class in the storyboard:

then make an outlet

@IBOutlet weak var testView: SwiftyInnerShadowView!
  • inner shadow properties
    testView.shadowLayer.shadowRadius = 4
    testView.shadowLayer.shadowColor = UIColor.red.cgColor
    testView.shadowLayer.shadowOpacity = 0.8
    testView.shadowLayer.shadowOffset = CGSize.zero
    testView.cornerRadius = 120

License

MIT

Latest podspec

{
    "name": "SwiftyShadow",
    "version": "1.3",
    "summary": "Shadow for UIView in Swift iOS",
    "description": "Simple and highly shadow for UIView in Swift iOS",
    "homepage": "https://github.com/noblakit01/SwiftyShadow",
    "license": "MIT",
    "authors": {
        "noblakit": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/noblakit01/SwiftyShadow.git",
        "tag": "1.3"
    },
    "source_files": "Sources/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This