From 4af467c5a04311d27670a4aac9a4bde7ec9315da Mon Sep 17 00:00:00 2001 From: Brian Cooke Date: Thu, 30 Aug 2012 14:26:09 -0700 Subject: [PATCH 1/3] Return on or off text as the accessibilityValue --- DCRoundSwitch/DCRoundSwitch.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DCRoundSwitch/DCRoundSwitch.m b/DCRoundSwitch/DCRoundSwitch.m index 8e0549b..f6bfd8e 100644 --- a/DCRoundSwitch/DCRoundSwitch.m +++ b/DCRoundSwitch/DCRoundSwitch.m @@ -465,4 +465,9 @@ - (void)setOffText:(NSString *)newOffText } } +- (NSString *)accessibilityValue +{ + return self.on ? self.onText : self.offText; +} + @end From 0b005589b69da3fdbe50317ce88159eec32280dd Mon Sep 17 00:00:00 2001 From: Brian Cooke Date: Tue, 4 Sep 2012 11:30:12 -0700 Subject: [PATCH 2/3] Add CocoaPods podspec --- DCRoundSwitch.podspec | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 DCRoundSwitch.podspec diff --git a/DCRoundSwitch.podspec b/DCRoundSwitch.podspec new file mode 100644 index 0000000..e4adb20 --- /dev/null +++ b/DCRoundSwitch.podspec @@ -0,0 +1,12 @@ +Pod::Spec.new do |s| + s.name = "DCRoundSwitch" + s.version = "0.0.1" + s.summary = "A 'modern' replica of UISwitch." + s.homepage = "https://github.com/domesticcatsoftware/DCRoundSwitch" + s.license = 'MIT' + s.author = { "Patrick Richards" => "contact@domesticcat.com.au" } + s.source = { :git => "https://github.com/infbio/DCRoundSwitch.git", :commit => "4af467c5a04311d27670a4aac9a4bde7ec9315da" } + s.platform = :ios + s.source_files = 'DCRoundSwitch/*' + s.frameworks = 'QuartzCore' +end \ No newline at end of file From 4fbe369b8490ec2d29e9df2bcd47215630865efc Mon Sep 17 00:00:00 2001 From: Peyman Date: Tue, 5 Feb 2013 14:39:44 -0800 Subject: [PATCH 3/3] Update git repository URL --- DCRoundSwitch.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCRoundSwitch.podspec b/DCRoundSwitch.podspec index e4adb20..9691fc7 100644 --- a/DCRoundSwitch.podspec +++ b/DCRoundSwitch.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.homepage = "https://github.com/domesticcatsoftware/DCRoundSwitch" s.license = 'MIT' s.author = { "Patrick Richards" => "contact@domesticcat.com.au" } - s.source = { :git => "https://github.com/infbio/DCRoundSwitch.git", :commit => "4af467c5a04311d27670a4aac9a4bde7ec9315da" } + s.source = { :git => "https://github.com/carezone/DCRoundSwitch.git", :commit => "4af467c5a04311d27670a4aac9a4bde7ec9315da" } s.platform = :ios s.source_files = 'DCRoundSwitch/*' s.frameworks = 'QuartzCore'