Skip to content

Commit

Permalink
Fix podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre committed Jul 23, 2017
1 parent 05e01cb commit 79f0fc8
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 10 deletions.
6 changes: 3 additions & 3 deletions PPMusicImageShadow.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'PPMusicImageShadow'
s.version = '0.9.2.2'
s.version = '0.9.2.3'
s.summary = 'iOS 10 Music Appshadow blur imitation'

s.description = <<-DESC
Expand All @@ -11,8 +11,8 @@ s.homepage = 'https://github.com/PierrePerrin/PPMusicImageShadow'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { '<YOUR NAME HERE>' => '<YOUR EMAIL HERE>' }
s.source = { :git => 'https://github.com/PierrePerrin/PPMusicImageShadow.git', :tag => s.version.to_s }
s.ios.resources = [PPMusicImageShadow/PPMusicImageShadow/*.png]
s.resources = 'PPMusicImageShadow/PPMusicImageShadow/Assets.xcassets'
s.ios.deployment_target = '9.0'
s.source_files = 'PPMusicImageShadow/PPMusicImageShadow/*.{swift}'
s.source_files = 'PPMusicImageShadow/PPMusicImageShadow/*.swift'

end
Binary file modified PPMusicImageShadow/.DS_Store
Binary file not shown.
10 changes: 4 additions & 6 deletions PPMusicImageShadow/PPMusicImageShadow.xcodeproj/project.pbxproj
Expand Up @@ -8,6 +8,7 @@

/* Begin PBXBuildFile section */
F91CF9D31F25275300BC1EE7 /* PPUIImage+size.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9A30B191F2526D200999D44 /* PPUIImage+size.swift */; };
F91CF9D51F252DC800BC1EE7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F91CF9D41F252DC800BC1EE7 /* Assets.xcassets */; };
F94EE1041E6E03C20008FD15 /* PPMusicImageShadow.h in Headers */ = {isa = PBXBuildFile; fileRef = F94EE1021E6E03C20008FD15 /* PPMusicImageShadow.h */; settings = {ATTRIBUTES = (Public, ); }; };
F9726B9F1E6E044400F69D83 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9726B9E1E6E044400F69D83 /* AppDelegate.swift */; };
F9726BA11E6E044400F69D83 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9726BA01E6E044400F69D83 /* ViewController.swift */; };
Expand All @@ -16,8 +17,6 @@
F9726BA91E6E044400F69D83 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F9726BA71E6E044400F69D83 /* LaunchScreen.storyboard */; };
F9726BAF1E6E045A00F69D83 /* PPMusicImageShadow.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9726BAE1E6E045A00F69D83 /* PPMusicImageShadow.swift */; };
F9726BB01E6E045A00F69D83 /* PPMusicImageShadow.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9726BAE1E6E045A00F69D83 /* PPMusicImageShadow.swift */; };
F9726BB21E6E047A00F69D83 /* shadowMask.png in Resources */ = {isa = PBXBuildFile; fileRef = F9726BB11E6E047A00F69D83 /* shadowMask.png */; };
F9726BB31E6E047A00F69D83 /* shadowMask.png in Resources */ = {isa = PBXBuildFile; fileRef = F9726BB11E6E047A00F69D83 /* shadowMask.png */; };
F9726BB61E6E04F500F69D83 /* lotus-978659_1920.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F9726BB41E6E04F500F69D83 /* lotus-978659_1920.jpg */; };
F9726BB91E6E05F800F69D83 /* prairie-679016_1920.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F9726BB71E6E05F800F69D83 /* prairie-679016_1920.jpg */; };
F9726BBC1E6E063100F69D83 /* italy-2080072_640.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F9726BBA1E6E063100F69D83 /* italy-2080072_640.jpg */; };
Expand All @@ -27,6 +26,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
F91CF9D41F252DC800BC1EE7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
F94EE0FF1E6E03C20008FD15 /* PPMusicImageShadow.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = PPMusicImageShadow.framework; sourceTree = BUILT_PRODUCTS_DIR; };
F94EE1021E6E03C20008FD15 /* PPMusicImageShadow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PPMusicImageShadow.h; sourceTree = "<group>"; };
F94EE1031E6E03C20008FD15 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand All @@ -38,7 +38,6 @@
F9726BA81E6E044400F69D83 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
F9726BAA1E6E044400F69D83 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
F9726BAE1E6E045A00F69D83 /* PPMusicImageShadow.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PPMusicImageShadow.swift; sourceTree = "<group>"; };
F9726BB11E6E047A00F69D83 /* shadowMask.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = shadowMask.png; sourceTree = "<group>"; };
F9726BB41E6E04F500F69D83 /* lotus-978659_1920.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "lotus-978659_1920.jpg"; sourceTree = "<group>"; };
F9726BB71E6E05F800F69D83 /* prairie-679016_1920.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "prairie-679016_1920.jpg"; sourceTree = "<group>"; };
F9726BBA1E6E063100F69D83 /* italy-2080072_640.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "italy-2080072_640.jpg"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -87,7 +86,7 @@
children = (
F9A30B191F2526D200999D44 /* PPUIImage+size.swift */,
F9726BAE1E6E045A00F69D83 /* PPMusicImageShadow.swift */,
F9726BB11E6E047A00F69D83 /* shadowMask.png */,
F91CF9D41F252DC800BC1EE7 /* Assets.xcassets */,
F94EE1021E6E03C20008FD15 /* PPMusicImageShadow.h */,
F94EE1031E6E03C20008FD15 /* Info.plist */,
);
Expand Down Expand Up @@ -224,7 +223,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F9726BB21E6E047A00F69D83 /* shadowMask.png in Resources */,
F91CF9D51F252DC800BC1EE7 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -238,7 +237,6 @@
F9726BA41E6E044400F69D83 /* Main.storyboard in Resources */,
F9726BB91E6E05F800F69D83 /* prairie-679016_1920.jpg in Resources */,
F9726BB61E6E04F500F69D83 /* lotus-978659_1920.jpg in Resources */,
F9726BB31E6E047A00F69D83 /* shadowMask.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "shadowMask.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "shadowMask-1.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "shadowMask-2.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -141,7 +141,9 @@ class PPMusicImageShadow: UIView {
self.blurredImageView?.center.y = self.imageView.center.y + imageSize.height * 0.06

let mask = CALayer()
mask.contents = UIImage.init(named: "shadowMask", in: Bundle.init(identifier: "PPMusicImageShadow"), compatibleWith: nil) ?? UIImage.init(named: "shadowMask")?.cgImage
let imageName = "PPMusicImageShadowMask"
let image = UIImage.init(named: imageName, in:Bundle.init(identifier: "PPMusicImageShadow") ?? Bundle.init(for: self.classForCoder), compatibleWith: nil) ?? UIImage.init(named: imageName)
mask.contents = image?.cgImage
mask.frame = self.blurredImageView!.bounds
self.blurredImageView?.layer.mask = mask
self.blurredImageView?.layer.masksToBounds = true
Expand Down

0 comments on commit 79f0fc8

Please sign in to comment.