This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let gradientLayer = CAGradientLayer() | |
gradientLayer.frame = rect | |
gradientLayer.colors = [ | |
UIColor.orange.cgColor, | |
UIColor.red.cgColor, | |
UIColor.purple.cgColor, | |
UIColor.blue.cgColor | |
] | |
gradientLayer.startPoint = CGPoint(x: 0.0, y: 0.0) | |
gradientLayer.endPoint = CGPoint(x: 1.0, y: 1.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if which "${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat" >/dev/null; then | |
"${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat" "$SRCROOT" | |
else | |
echo "SwiftFormat does not exist, download from https://github.com/nicklockwood/SwiftFormat" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if which "${PODS_ROOT}/SwiftLint/swiftlint" >/dev/null; then | |
git diff --name-only | grep .swift | while read filename; do | |
"${PODS_ROOT}/SwiftLint/swiftlint" --path "$filename" | |
done | |
else | |
echo "SwiftLint does not exist, download from https://github.com/realm/SwiftLint" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uncomment the next line to define a global platform for your project | |
platform :ios, '12.0' | |
# Comment the next line if you don't want to use dynamic frameworks | |
use_frameworks! | |
abstract_target 'All' do | |
# Pods for All | |
pod 'SwiftFormat/CLI' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file options | |
--exclude Pods,Generated | |
# format options | |
--allman false | |
--binarygrouping 4,8 | |
--commas inline | |
--comments indent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file options | |
--exclude Pods,Generated | |
# format options | |
--allman false | |
--binarygrouping 4,8 | |
--commas inline | |
--comments indent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
included: | |
- Practice_SwiftStyle | |
# - Source | |
# - Tests | |
# 対象外のファイル・フォルダ | |
excluded: | |
# - Tests/SwiftLintFrameworkTests/Resources | |
- Pods/ | |
- Generated |