Skip to content

Commit

Permalink
fix sample code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ykyouhei committed Jan 2, 2017
1 parent df8453c commit e6ac704
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion KYNavigationProgress.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "KYNavigationProgress"
s.version = "2.0.0"
s.version = "2.0.1"
s.summary = "KYNavigationProgress is simple extension of UINavigationController to display progress on the UINavigationBar."
s.homepage = "https://github.com/ykyouhei/KYNavigationProgress"
s.license = "MIT"
Expand Down
16 changes: 7 additions & 9 deletions KYNavigationProgress.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,16 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0800;
LastUpgradeCheck = 0820;
ORGANIZATIONNAME = kyo__hei;
TargetAttributes = {
C2A91C121C32782F006D1CAE = {
CreatedOnToolsVersion = 7.2;
DevelopmentTeam = 432FNJ7C99;
LastSwiftMigration = 0800;
ProvisioningStyle = Automatic;
};
C2A91C301C327872006D1CAE = {
CreatedOnToolsVersion = 7.2;
DevelopmentTeam = 432FNJ7C99;
};
};
};
Expand Down Expand Up @@ -380,9 +378,9 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 432FNJ7C99;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
Expand All @@ -402,9 +400,9 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 432FNJ7C99;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
Expand All @@ -424,7 +422,7 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 432FNJ7C99;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Sample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Expand All @@ -438,7 +436,7 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 432FNJ7C99;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Sample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
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 = "0800"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion KYNavigationProgress/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>2.0.0</string>
<string>2.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 0 additions & 4 deletions Sample/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]?) -> Bool {
// Override point for customization after application launch.

ProgressView.appearance().progressTintColor = .green
ProgressView.appearance().trackTintColor = .red

return true
}

Expand Down
10 changes: 7 additions & 3 deletions Sample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,20 @@ class ViewController: UIViewController {
}

@IBAction func handleValueChanged(sender: UISegmentedControl) {
switch sender.selectedSegmentIndex {
case 0: navigationController?.progressTintColor = UIColor.red
case 1: navigationController?.progressTintColor = UIColor.green
case 2: navigationController?.progressTintColor = UIColor.blue
default: break
}
}


override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
navigationController?.progressHeight = 2
navigationController?.progressTintColor = .yellow
navigationController?.trackTintColor = .blue
}
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
Expand Down

0 comments on commit e6ac704

Please sign in to comment.