-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
349 additions
and
171 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
Demo/Pods/Target Support Files/SwiftMessages/ResourceBundle-SwiftMessages-Info.plist
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Pod::Spec.new do |spec| | ||
spec.name = 'SwiftMessages' | ||
spec.version = '3.2.1' | ||
spec.version = '3.3.0' | ||
spec.license = { :type => 'MIT' } | ||
spec.homepage = 'https://github.com/SwiftKickMobile/SwiftMessages' | ||
spec.authors = { 'Timothy Moose' => '[email protected]' } | ||
spec.summary = 'A very flexible message bar for iOS written in Swift.' | ||
spec.source = {:git => 'https://github.com/SwiftKickMobile/SwiftMessages.git', :tag => '3.2.1'} | ||
spec.source = {:git => 'https://github.com/SwiftKickMobile/SwiftMessages.git', :tag => '3.3.0'} | ||
spec.platform = :ios, '8.0' | ||
spec.ios.deployment_target = '8.0' | ||
spec.source_files = 'SwiftMessages/**/*.swift' | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// AccessibleMessage.swift | ||
// SwiftMessages | ||
// | ||
// Created by Timothy Moose on 3/11/17. | ||
// Copyright © 2017 SwiftKick Mobile. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/** | ||
Message views that `AccessibleMessage`, as `MessageView` does will | ||
have proper accessibility behavior when displaying messages. | ||
`MessageView` implements this protocol. | ||
*/ | ||
public protocol AccessibleMessage { | ||
var accessibilityMessage: String? { get } | ||
var accessibilityElement: NSObject? { get } | ||
var additonalAccessibilityElements: [NSObject]? { get } | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// MaskingView.swift | ||
// SwiftMessages | ||
// | ||
// Created by Timothy Moose on 3/11/17. | ||
// Copyright © 2017 SwiftKick Mobile. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
|
||
class MaskingView: PassthroughView { | ||
|
||
var accessibleElements: [NSObject] = [] | ||
|
||
override func accessibilityElementCount() -> Int { | ||
return accessibleElements.count | ||
} | ||
|
||
override func accessibilityElement(at index: Int) -> Any? { | ||
return accessibleElements[index] | ||
} | ||
|
||
override func index(ofAccessibilityElement element: Any) -> Int { | ||
guard let object = element as? NSObject else { return 0 } | ||
return accessibleElements.index(of: object) ?? 0 | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.