Swiftpack.co - immortal-it/IMViewBlur as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by immortal-it.
immortal-it/IMViewBlur 0.0.1
Blur View
⭐️ 1
🕓 3 years ago
iOS
.package(url: "https://github.com/immortal-it/IMViewBlur.git", from: "0.0.1")

IMViewBlur

Pod Version Pod Platform Pod License CocoaPods compatible Carthage Compatible

You can easily use IMViewBlur for efficient view blurring on iOS.

Requirements

  • iOS 10.0+
  • Xcode 11+
  • Swift 5.0+

Installation

From CocoaPods

CocoaPods is a dependency manager for Cocoa projects, which automates and simplifies the process of using 3rd-party libraries like IMViewBlur in your projects. First, add the following line to your Podfile:

pod 'IMViewBlur'

If you want to use the latest features of IMViewBlur use normal external source dependencies.

pod 'IMViewBlur', :git => 'https://github.com/immortal-it/IMViewBlur.git'

This pulls from the main branch directly.

Second, install IMViewBlur into your project:

pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate IMViewBlur into your Xcode project using Carthage, specify it in your Cartfile:

github "immortal-it/IMViewBlur" ~> 0.0.1

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but IMViewBlur does support its use on supported platforms.

Once you have your Swift package set up, adding IMViewBlur as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/immortal-it/IMViewBlur", .upToNextMajor(from: "0.0.1"))
]

Manually

  • Drag the immortal-it/IMViewBlur folder into your project.

Usage

(see sample Xcode project in Demo)

Using IMViewBlur in your app will usually look as simple as this:

if IMViewBlur.isBlurred(for: view) {
    IMViewBlur.unBlur(from: view, duration: 0.5)
} else {
    IMViewBlur.blur(in: view, radius: 6.0, duration: 0.5)
}

License

IMViewBlur is distributed under the terms and conditions of the MIT license.

GitHub

link
Stars: 1
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics