Skip to content

Commit

Permalink
Swift 5.0 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
efremidze committed Apr 24, 2019
1 parent 8c9b8f4 commit 79c5a7c
Show file tree
Hide file tree
Showing 16 changed files with 62 additions and 46 deletions.
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

19 changes: 14 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
language: objective-c
osx_image: xcode10
os: osx
osx_image: xcode10.2
env:
global:
- PROJECT=VisualEffectView.xcodeproj
- SCHEME="VisualEffectView"
- EXAMPLE_SCHEME="Example"
matrix:
- DESTINATION="OS=12.2,name=iPhone XS" SCHEME="$SCHEME"
- DESTINATION="OS=11.4,name=iPhone X" SCHEME="$SCHEME"
- DESTINATION="OS=10.3.1,name=iPhone 7 Plus" SCHEME="$SCHEME"
script:
- xcodebuild clean -project VisualEffectView.xcodeproj -scheme VisualEffectView -destination "platform=iOS Simulator,name=iPhone X,OS=12.0" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -quiet
- xcodebuild clean -project VisualEffectView.xcodeproj -scheme Example -destination "platform=iOS Simulator,name=iPhone X,OS=12.0" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -quiet
- pod spec lint
- set -o pipefail

- xcodebuild -project "$PROJECT" -scheme "$EXAMPLE_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Change log

## [Version 4.0.0](https://github.com/efremidze/VisualEffectView/releases/tag/4.0.0)
Released on 2019-04-24

- Swift 5.0 support

## [Version 3.1.1](https://github.com/efremidze/VisualEffectView/releases/tag/3.1.1)
Released on 2018-03-11
Released on 2019-03-11

- Updated example

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ pod try VisualEffectView

- iOS 9.0+
- Xcode 9.0+
- Swift 4 (VisualEffectView 3.x), Swift 3 (VisualEffectView 2.x), Swift 2 (VisualEffectView 1.x)
- Swift 5 (VisualEffectView 4.x), Swift 4 (VisualEffectView 3.x), Swift 3 (VisualEffectView 2.x), Swift 2 (VisualEffectView 1.x)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion Sources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.1.1</string>
<string>4.0.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
3 changes: 2 additions & 1 deletion VisualEffectView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@

Pod::Spec.new do |s|
s.name = "VisualEffectView"
s.version = "3.1.1"
s.version = "4.0.0"
s.license = 'MIT'
s.homepage = "https://github.com/efremidze/VisualEffectView"
s.author = { "Lasha Efremidze" => "efremidzel@hotmail.com" }
s.documentation_url = 'https://efremidze.github.io/VisualEffectView/'
s.summary = "Dynamic blur background view with tint color (UIVisualEffectView subclass)"
s.source = { :git => 'https://github.com/efremidze/VisualEffectView.git', :tag => s.version }
s.source_files = "Sources/*.swift"
s.swift_version = '5.0'
s.ios.deployment_target = '9.0'
end
18 changes: 8 additions & 10 deletions VisualEffectView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -187,24 +187,24 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0820;
LastUpgradeCheck = 0930;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = "Lasha Efremidze";
TargetAttributes = {
8B3243FD1E07D7CB00712FEA = {
CreatedOnToolsVersion = 8.2;
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
};
8B32440C1E07D7D900712FEA = {
CreatedOnToolsVersion = 8.2;
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 8B3243F81E07D7CB00712FEA /* Build configuration list for PBXProject "VisualEffectView" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Expand Down Expand Up @@ -297,6 +297,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand Down Expand Up @@ -348,7 +349,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand All @@ -359,6 +360,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand Down Expand Up @@ -402,7 +404,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
Expand All @@ -427,7 +429,6 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
};
name = Debug;
};
Expand All @@ -447,7 +448,6 @@
PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.VisualEffectView;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
};
name = Release;
};
Expand All @@ -461,7 +461,6 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
};
name = Debug;
};
Expand All @@ -475,7 +474,6 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0930"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
4 changes: 2 additions & 2 deletions docs/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2018-10-02)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2019 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2019-04-24)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/Classes/VisualEffectView.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2018-10-02)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2019 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2019-04-24)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2018-10-02)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2019 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2019-04-24)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2018-10-02)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2019 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2019-04-24)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,24 @@
<h1 id='visualeffectview' class='heading'>VisualEffectView</h1>

<p><a href="https://travis-ci.org/efremidze/VisualEffectView"><img src="https://travis-ci.org/efremidze/VisualEffectView.svg?branch=master" alt="Build Status"></a>
<a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a>
<a href="https://swift.org"><img src="https://img.shields.io/badge/Swift-4-orange.svg?style=flat" alt="Language"></a>
<a href="http://cocoapods.org/pods/VisualEffectView"><img src="https://img.shields.io/cocoapods/v/VisualEffectView.svg?style=flat" alt="Version"></a>
<a href="http://cocoapods.org/pods/VisualEffectView"><img src="https://img.shields.io/cocoapods/l/VisualEffectView.svg?style=flat" alt="License"></a>
<a href="http://cocoapods.org/pods/VisualEffectView"><img src="https://img.shields.io/cocoapods/p/VisualEffectView.svg?style=flat" alt="Platform"></a>
<a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a></p>
<a href="http://cocoapods.org/pods/VisualEffectView"><img src="https://img.shields.io/cocoapods/l/VisualEffectView.svg?style=flat" alt="License"></a></p>

<p><strong>VisualEffectView</strong> is a blur effect library with tint color support. This library uses the <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIVisualEffectView/">UIVisualEffectView</a> to generate the blur.</p>

<p><img src="https://raw.githubusercontent.com/efremidze/VisualEffectView/master/Images/demo.gif" alt="Demo"></p>
<p><img src="https://thumbs.gfycat.com/EnormousLightBullmastiff-size_restricted.gif" alt="Demo GIF"></p>

<p><a href="https://gfycat.com/EnormousLightBullmastiff">Demo Video</a></p>
<pre class="highlight plaintext"><code>$ pod try VisualEffectView
</code></pre>
<h2 id='requirements' class='heading'>Requirements</h2>

<ul>
<li>iOS 9.0+</li>
<li>Xcode 9.0+</li>
<li>Swift 4 (VisualEffectView 3.x), Swift 3 (VisualEffectView 2.x), Swift 2 (VisualEffectView 1.x)</li>
<li>Swift 5 (VisualEffectView 4.x), Swift 4 (VisualEffectView 3.x), Swift 3 (VisualEffectView 2.x), Swift 2 (VisualEffectView 1.x)</li>
</ul>
<h2 id='usage' class='heading'>Usage</h2>

Expand Down Expand Up @@ -126,8 +128,8 @@ <h2 id='license' class='heading'>License</h2>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2018-10-02)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2019 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2019-04-24)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
</div>
Expand Down
Binary file modified docs/docsets/VisualEffectView.tgz
Binary file not shown.
16 changes: 9 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,24 @@
<h1 id='visualeffectview' class='heading'>VisualEffectView</h1>

<p><a href="https://travis-ci.org/efremidze/VisualEffectView"><img src="https://travis-ci.org/efremidze/VisualEffectView.svg?branch=master" alt="Build Status"></a>
<a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a>
<a href="https://swift.org"><img src="https://img.shields.io/badge/Swift-4-orange.svg?style=flat" alt="Language"></a>
<a href="http://cocoapods.org/pods/VisualEffectView"><img src="https://img.shields.io/cocoapods/v/VisualEffectView.svg?style=flat" alt="Version"></a>
<a href="http://cocoapods.org/pods/VisualEffectView"><img src="https://img.shields.io/cocoapods/l/VisualEffectView.svg?style=flat" alt="License"></a>
<a href="http://cocoapods.org/pods/VisualEffectView"><img src="https://img.shields.io/cocoapods/p/VisualEffectView.svg?style=flat" alt="Platform"></a>
<a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a></p>
<a href="http://cocoapods.org/pods/VisualEffectView"><img src="https://img.shields.io/cocoapods/l/VisualEffectView.svg?style=flat" alt="License"></a></p>

<p><strong>VisualEffectView</strong> is a blur effect library with tint color support. This library uses the <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIVisualEffectView/">UIVisualEffectView</a> to generate the blur.</p>

<p><img src="https://raw.githubusercontent.com/efremidze/VisualEffectView/master/Images/demo.gif" alt="Demo"></p>
<p><img src="https://thumbs.gfycat.com/EnormousLightBullmastiff-size_restricted.gif" alt="Demo GIF"></p>

<p><a href="https://gfycat.com/EnormousLightBullmastiff">Demo Video</a></p>
<pre class="highlight plaintext"><code>$ pod try VisualEffectView
</code></pre>
<h2 id='requirements' class='heading'>Requirements</h2>

<ul>
<li>iOS 9.0+</li>
<li>Xcode 9.0+</li>
<li>Swift 4 (VisualEffectView 3.x), Swift 3 (VisualEffectView 2.x), Swift 2 (VisualEffectView 1.x)</li>
<li>Swift 5 (VisualEffectView 4.x), Swift 4 (VisualEffectView 3.x), Swift 3 (VisualEffectView 2.x), Swift 2 (VisualEffectView 1.x)</li>
</ul>
<h2 id='usage' class='heading'>Usage</h2>

Expand Down Expand Up @@ -126,8 +128,8 @@ <h2 id='license' class='heading'>License</h2>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2018-10-02)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2019 <a class="link" href="https://github.com/efremidze/VisualEffectView" target="_blank" rel="external">Lasha Efremidze</a>. All rights reserved. (Last updated: 2019-04-24)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/undocumented.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"warnings": [
{
"file": "/Users/home/Documents/VisualEffectView/Sources/VisualEffectView.swift",
"file": "/Users/home/Documents/VisualEffectView2/Sources/VisualEffectView.swift",
"line": 61,
"symbol": "VisualEffectView.init(effect:)",
"symbol_kind": "source.lang.swift.decl.function.method.instance",
"warning": "undocumented"
},
{
"file": "/Users/home/Documents/VisualEffectView/Sources/VisualEffectView.swift",
"file": "/Users/home/Documents/VisualEffectView2/Sources/VisualEffectView.swift",
"line": 67,
"symbol": "VisualEffectView.init(coder:)",
"symbol_kind": "source.lang.swift.decl.function.method.instance",
"warning": "undocumented"
}
],
"source_directory": "/Users/home/Documents/VisualEffectView"
"source_directory": "/Users/home/Documents/VisualEffectView2"
}

0 comments on commit 79c5a7c

Please sign in to comment.