Skip to content

Commit

Permalink
Added SwiftLint (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
efremidze committed Jul 25, 2023
1 parent df0121b commit 86ec056
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: SwiftLint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: GitHub Action for SwiftLint
uses: norio-nomura/action-swiftlint@3.2.1
5 changes: 5 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
disabled_rules:
- force_cast
- identifier_name
- line_length
- trailing_whitespace
File renamed without changes.
2 changes: 1 addition & 1 deletion Sources/VisualEffectView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private extension VisualEffectView {
/// Sets the value for the key on the blurEffect.
func _setValue<T>(_ value: T?, forKey key: Key) {
blurEffect.setValue(value, forKeyPath: key.rawValue)
if #available(iOS 14, *) {} else {
if #unavailable(iOS 14) {
self.effect = blurEffect
}
}
Expand Down
8 changes: 4 additions & 4 deletions VisualEffectView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
F449249F206F2D5100117F6B /* VisualEffectView.podspec in Resources */ = {isa = PBXBuildFile; fileRef = F449249C206F2D5100117F6B /* VisualEffectView.podspec */; };
F44924A0206F2D5100117F6B /* CHANGELOG.md in Resources */ = {isa = PBXBuildFile; fileRef = F449249D206F2D5100117F6B /* CHANGELOG.md */; };
F48F0D532236406400F54233 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F48F0D522236406400F54233 /* Extensions.swift */; };
F4BE05CB25108C0000500B57 /* UIViewEffectViewiOS14.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4BE05CA25108C0000500B57 /* UIViewEffectViewiOS14.swift */; };
F4BE05CB25108C0000500B57 /* UIViewEffectView_iOS14.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4BE05CA25108C0000500B57 /* UIViewEffectView_iOS14.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -65,7 +65,7 @@
F449249C206F2D5100117F6B /* VisualEffectView.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = VisualEffectView.podspec; sourceTree = "<group>"; };
F449249D206F2D5100117F6B /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
F48F0D522236406400F54233 /* Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
F4BE05CA25108C0000500B57 /* UIViewEffectViewiOS14.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIViewEffectViewiOS14.swift; sourceTree = "<group>"; };
F4BE05CA25108C0000500B57 /* UIViewEffectView_iOS14.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIViewEffectView_iOS14.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -112,7 +112,7 @@
isa = PBXGroup;
children = (
8B3DFCDF1E07D8F5009EAFA2 /* VisualEffectView.swift */,
F4BE05CA25108C0000500B57 /* UIViewEffectViewiOS14.swift */,
F4BE05CA25108C0000500B57 /* UIViewEffectView_iOS14.swift */,
C0864C832A6FB2D2006B0F49 /* VisualEffectView_SwiftUI.swift */,
8B3244011E07D7CB00712FEA /* VisualEffectView.h */,
8B3244021E07D7CB00712FEA /* Info.plist */,
Expand Down Expand Up @@ -256,7 +256,7 @@
buildActionMask = 2147483647;
files = (
8B3DFCE01E07D8F5009EAFA2 /* VisualEffectView.swift in Sources */,
F4BE05CB25108C0000500B57 /* UIViewEffectViewiOS14.swift in Sources */,
F4BE05CB25108C0000500B57 /* UIViewEffectView_iOS14.swift in Sources */,
C0864C842A6FB2D2006B0F49 /* VisualEffectView_SwiftUI.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down

0 comments on commit 86ec056

Please sign in to comment.