Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shima11 committed Feb 24, 2024
1 parent 83e5ad8 commit 38d1bc4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Package.swift
Expand Up @@ -6,7 +6,8 @@ import PackageDescription
let package = Package(
name: "SkinSmoothingFilter",
platforms: [
.iOS(.v15)
.iOS(.v15),
.macOS(.v11),
],
products: [
.library(
Expand Down
47 changes: 46 additions & 1 deletion README.md
@@ -1 +1,46 @@
# SkinSmoothingFilter
# SkinSmoothingFilter

A lightweight SkinSmoothing Filter using Metal and CoreImage.


# Requirements

iOS 15+, macOS 11+

# Installation

You can add SkinSmoothingFilter to your project via Swift Package Manager by adding the following to your `Package.swift` file:

```swift
dependencies: [
.package(url: "https://github.com/shima11/SkinSmoothingFilter.git", .upToNextMajor(from: "1.0.0"))
]
```

# Usage

To use the SkinSmoothingFilter, you first need to import the package into your project:

```swift
import SkinSmoothingFilter
```

Then, create an instance of SkinSmoothingFilter, set your desired parameters, and process your images like so:

```swift
let filter = SkinSmoothingFilter()
filter.inputImage = ciImage // Your input CIImage
filter.inputAmount = inputAmount // Smoothing amount
filter.inputSharpness = inputSharpness // Image sharpness
filter.inputRadius = inputRadius // Blur radius

let result = filter.outputImage // Processed CIImage
```

# Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any ideas, bug reports, or suggestions.

# License

SkinSmoothingFilter is available under the MIT license. See the LICENSE file for more info.

0 comments on commit 38d1bc4

Please sign in to comment.