Skip to content

Commit

Permalink
updated Source and demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jawad-digitify committed Jul 20, 2021
1 parent 445eec6 commit cc174e2
Show file tree
Hide file tree
Showing 14 changed files with 124 additions and 461 deletions.
235 changes: 0 additions & 235 deletions Sources/Navigation/JDNavigationBar.swift

This file was deleted.

37 changes: 0 additions & 37 deletions Sources/Navigation/JDNavigationController.swift

This file was deleted.

20 changes: 3 additions & 17 deletions Switches.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
E3F7F9D324FE1DD9004DBE69 /* YapSwitch.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3F7F9C324FE1DD9004DBE69 /* YapSwitch.swift */; };
E3F7F9D424FE1DD9004DBE69 /* CALayer+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3F7F9C424FE1DD9004DBE69 /* CALayer+Extension.swift */; };
E3F7F9D524FE1DD9004DBE69 /* Switches.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3F7F9C524FE1DD9004DBE69 /* Switches.swift */; };
E3F7F9D624FE1DD9004DBE69 /* JDNavigationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3F7F9C724FE1DD9004DBE69 /* JDNavigationController.swift */; };
E3F7F9D724FE1DD9004DBE69 /* JDNavigationBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3F7F9C824FE1DD9004DBE69 /* JDNavigationBar.swift */; };
E3F7F9D824FE1DD9004DBE69 /* Switches.h in Headers */ = {isa = PBXBuildFile; fileRef = E3F7F9C924FE1DD9004DBE69 /* Switches.h */; settings = {ATTRIBUTES = (Public, ); }; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -113,8 +111,6 @@
E3F7F9C324FE1DD9004DBE69 /* YapSwitch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YapSwitch.swift; sourceTree = "<group>"; };
E3F7F9C424FE1DD9004DBE69 /* CALayer+Extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "CALayer+Extension.swift"; sourceTree = "<group>"; };
E3F7F9C524FE1DD9004DBE69 /* Switches.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Switches.swift; sourceTree = "<group>"; };
E3F7F9C724FE1DD9004DBE69 /* JDNavigationController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JDNavigationController.swift; sourceTree = "<group>"; };
E3F7F9C824FE1DD9004DBE69 /* JDNavigationBar.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JDNavigationBar.swift; sourceTree = "<group>"; };
E3F7F9C924FE1DD9004DBE69 /* Switches.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Switches.h; sourceTree = "<group>"; };
E3F7F9CA24FE1DD9004DBE69 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -298,7 +294,6 @@
children = (
E3F7F9BA24FE1DD9004DBE69 /* Switches */,
E3F7F9C524FE1DD9004DBE69 /* Switches.swift */,
E3F7F9C624FE1DD9004DBE69 /* Navigation */,
E3F7F9C924FE1DD9004DBE69 /* Switches.h */,
E3F7F9CA24FE1DD9004DBE69 /* Info.plist */,
);
Expand All @@ -322,15 +317,6 @@
path = Switches;
sourceTree = "<group>";
};
E3F7F9C624FE1DD9004DBE69 /* Navigation */ = {
isa = PBXGroup;
children = (
E3F7F9C724FE1DD9004DBE69 /* JDNavigationController.swift */,
E3F7F9C824FE1DD9004DBE69 /* JDNavigationBar.swift */,
);
path = Navigation;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -441,7 +427,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1140;
LastUpgradeCheck = 1140;
LastUpgradeCheck = 1230;
ORGANIZATIONNAME = "Jawad Ali";
TargetAttributes = {
E30C48B024FAE6930049D5C3 = {
Expand Down Expand Up @@ -533,7 +519,6 @@
buildActionMask = 2147483647;
files = (
E3F7F9D224FE1DD9004DBE69 /* BaseControl.swift in Sources */,
E3F7F9D624FE1DD9004DBE69 /* JDNavigationController.swift in Sources */,
E3F7F9CE24FE1DD9004DBE69 /* YapLiquidSwitch.swift in Sources */,
E3F7F9D524FE1DD9004DBE69 /* Switches.swift in Sources */,
E3F7F9CB24FE1DD9004DBE69 /* Switcher.swift in Sources */,
Expand All @@ -544,7 +529,6 @@
E3F7F9CD24FE1DD9004DBE69 /* JDSwitch.swift in Sources */,
E3F7F9D024FE1DD9004DBE69 /* SDSwitch.swift in Sources */,
E3F7F9CC24FE1DD9004DBE69 /* YapBaseSwitch.swift in Sources */,
E3F7F9D724FE1DD9004DBE69 /* JDNavigationBar.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -660,6 +644,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -723,6 +708,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
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 = "1140"
LastUpgradeVersion = "1230"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
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 = "1140"
LastUpgradeVersion = "1230"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
3 changes: 0 additions & 3 deletions SwitchesDemo/Controllers/AnimatedSwitchesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ class AnimatedSwitchesViewController: UIViewController {
}
}
override func viewDidLoad() {

( navigationController?.navigationBar as? JDNavigationBar)?.changeColor(#colorLiteral(red: 0.4935741425, green: 0.5258994699, blue: 0.9827957749, alpha: 1))
( navigationController?.navigationBar as? JDNavigationBar)?.cycles = 15
title = "Animated Switches"
super.viewDidLoad()

Expand Down
6 changes: 0 additions & 6 deletions SwitchesDemo/Controllers/GradientSwitchesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ class GradientSwitchesViewController: UIViewController {

title = "Gradient Switches"

( navigationController?.navigationBar as? JDNavigationBar)?.heightShape = 80
( navigationController?.navigationBar as? JDNavigationBar)?.changeColor(#colorLiteral(red: 0.1861540377, green: 0.2199867666, blue: 0.2542595267, alpha: 1))
( navigationController?.navigationBar as? JDNavigationBar)?.shape = .folded




// Do any additional setup after loading the view.
}
Expand Down
Loading

0 comments on commit cc174e2

Please sign in to comment.