From d605c5f5c77a1c1824ce3689a5ec753936bc1ef8 Mon Sep 17 00:00:00 2001 From: Benjamin Hendricks Date: Wed, 27 Sep 2017 14:15:29 +0100 Subject: [PATCH] update to 1.1.2 --- CHANGELOG.md | 5 +++++ RapidA11y.podspec | 2 +- RapidA11y/Rapid.swift | 2 -- RapidA11y/UIViewController+Rapid.swift | 8 -------- RapidTests.podspec | 2 +- 5 files changed, 7 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1457097..eb9b5ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Note: Will eventually be automated by fastlane, but manual updates for now! ## Note 2: Keep this document's max column width to 80 characters! Thank you :) +##### v 1.1.2: +- The `var accessibilityControls` is now a function! `rapidAccessibilityControls`, +just use that to return your variables you otherwise put into accessibilityControls. +- Updated dependencies accordingly with Swift 4's protocol changes + ##### v 1.1.1: - Moved accessibilityControls into RapidAccessible protocol (from RapidIdentifiable) - Killed some warnings diff --git a/RapidA11y.podspec b/RapidA11y.podspec index 2236559..3676e69 100644 --- a/RapidA11y.podspec +++ b/RapidA11y.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'RapidA11y' - s.version = '1.1.1' + s.version = '1.1.2' s.summary = 'Accessibility framework build to interact with RapidTests, a UI testing framework.' s.description = 'RapidA11y is an accessibility framework built to ease the addition of accessibility to an iOS application. This enables both easy VoiceOver implementations and integration into RapidTests, a partner diff --git a/RapidA11y/Rapid.swift b/RapidA11y/Rapid.swift index a8f18c9..293e338 100644 --- a/RapidA11y/Rapid.swift +++ b/RapidA11y/Rapid.swift @@ -24,8 +24,6 @@ public protocol RapidAccessible { } public protocol RapidIdentifiable { - associatedtype Control: RapidControlIdentifiable - func accessibilityControls() -> [Control] func applyAccessibility() } diff --git a/RapidA11y/UIViewController+Rapid.swift b/RapidA11y/UIViewController+Rapid.swift index 56ffaae..96239ba 100644 --- a/RapidA11y/UIViewController+Rapid.swift +++ b/RapidA11y/UIViewController+Rapid.swift @@ -20,14 +20,6 @@ import UIKit extension UIViewController: RapidIdentifiable { - public typealias Control = NSObject - - open func accessibilityControls() -> [Control] { - // Override this in your view controllers - // put actual references to UIControls in your views - return [] - } - // Make sure to call this in `viewDidLoad()` after your UI is set up public func applyAccessibility() { guard let accessibleSelf = self as? RapidAccessible else { diff --git a/RapidTests.podspec b/RapidTests.podspec index c550809..78b5806 100644 --- a/RapidTests.podspec +++ b/RapidTests.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'RapidTests' - s.version = '1.1.1' + s.version = '1.1.2' s.summary = 'UI testing framework built on top of RapidA11y.' s.description = 'RapidTests is a UI testing framework built to ease the creation and maintenance of UI tests in a complex iOS application. This framework is used only in