Skip to content

atlou/SmoothShadows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmoothShadows

SmoothShadows is a SwiftUI package that lets you add customizable, smoother shadows to your views.

Preview Image

Installation

Swift Package Manager

  1. Open your Xcode project.
  2. Navigate to File > Add Package Dependencies....
  3. Enter the repository URL: https://github.com/atlou/SmoothShadows/.
  4. Select “Add Package” to integrate SmoothShadows into your project.

Usage

Import the package in your SwiftUI file:

import SmoothShadows

Apply the smoothShadow modifier to a view:

Rectangle()
  .smoothShadow(color: .black.opacity(0.5), y: 10)

Parameters

  • color: The color of the shadow.
  • x: Horizontal offset of the shadow.
  • y: Vertical offset of the shadow.

License

This package is available under the MIT license. See the LICENSE file for more information.

About

SwiftUI view modifier to create smooth shadows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages