PierrePerrin/PPMusicImageShadow
소개
PPMusicImageShadow is a view that imitates in real time the shadow blurred effect of iOS Music App.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalCheck my new repo for impoved performances and compatibility of this effect (Now compatible for all UIVIews) https://github.com/PierrePerrin/ShadowView
PPMusicImageShadow
Synopsis
PPMusicImageShadow is a view that imitates in real time the shadow blurred effect of iOS Music App.

Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate PPMusicImageShadow into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target '<Your Target Name>' do
pod 'PPMusicImageShadow'
end
Manually
If you prefer you can clone the project, release the framework or use the view swift file directly.
Code Example
Storyboard Example
Insert a normal UIView in your viewController.

Change it class with "PPMusicImageShadow". Now you can set an image like an imageView, a blur radius, and a corner radius.
Programing Example
import PPMusicImageShadow
class ProgramingExampleViewController: UIViewController {
var exampleView : PPMusicImageShadow!
override func viewDidLoad() {
super.viewDidLoad()
self.addEffectView()
self.prepareExampleView()
self.setImageToExampleView()
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
self.exampleView.center = self.view.center
}
//MARK: Example
func addEffectView(){
self.exampleView = PPMusicImageShadow(frame: CGRect.init(x: 0, y: 0, width: 300, height: 300))
self.view.addSubview(self.exampleView)
}
func setImageToExampleView(){
let image = UIImage(named: "prairie-679016_1920.jpg")
self.exampleView.image = image
}
func prepareExampleView(){
self.exampleView.cornerRaduis = 10
self.exampleView.blurRadius = 5
}
}
관련 프로젝트 살펴보기
불러오는 중…