mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-02-02 10:27:08 +01:00
commit
97c469e624
@ -75,7 +75,6 @@
|
||||
2DAC9E46262FC9FD0062E1A6 /* SuggestionAccountTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DAC9E45262FC9FD0062E1A6 /* SuggestionAccountTableViewCell.swift */; };
|
||||
2DCB73FD2615C13900EC03D4 /* SearchRecommendCollectionHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DCB73FC2615C13900EC03D4 /* SearchRecommendCollectionHeader.swift */; };
|
||||
2DE0FACE2615F7AD00CDF649 /* RecommendAccountSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DE0FACD2615F7AD00CDF649 /* RecommendAccountSection.swift */; };
|
||||
2DF123A725C3B0210020F248 /* ActiveLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DF123A625C3B0210020F248 /* ActiveLabel.swift */; };
|
||||
5B24BBDA262DB14800A9381B /* ReportViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B24BBD7262DB14800A9381B /* ReportViewModel.swift */; };
|
||||
5B24BBDB262DB14800A9381B /* ReportStatusViewModel+Diffable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B24BBD8262DB14800A9381B /* ReportStatusViewModel+Diffable.swift */; };
|
||||
5B90C45E262599800002E742 /* SettingsViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B90C456262599800002E742 /* SettingsViewModel.swift */; };
|
||||
@ -584,7 +583,6 @@
|
||||
2DAC9E45262FC9FD0062E1A6 /* SuggestionAccountTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SuggestionAccountTableViewCell.swift; sourceTree = "<group>"; };
|
||||
2DCB73FC2615C13900EC03D4 /* SearchRecommendCollectionHeader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchRecommendCollectionHeader.swift; sourceTree = "<group>"; };
|
||||
2DE0FACD2615F7AD00CDF649 /* RecommendAccountSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecommendAccountSection.swift; sourceTree = "<group>"; };
|
||||
2DF123A625C3B0210020F248 /* ActiveLabel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActiveLabel.swift; sourceTree = "<group>"; };
|
||||
2E1F6A67FDF9771D3E064FDC /* Pods-Mastodon.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Mastodon.debug.xcconfig"; path = "Target Support Files/Pods-Mastodon/Pods-Mastodon.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
3B7FD8F28DDA8FBCE5562B78 /* Pods-NotificationService.asdk - debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationService.asdk - debug.xcconfig"; path = "Target Support Files/Pods-NotificationService/Pods-NotificationService.asdk - debug.xcconfig"; sourceTree = "<group>"; };
|
||||
3C030226D3C73DCC23D67452 /* Pods_Mastodon_MastodonUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Mastodon_MastodonUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
@ -2262,7 +2260,6 @@
|
||||
DB8AF56225C138BC002E6C99 /* Extension */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2DF123A625C3B0210020F248 /* ActiveLabel.swift */,
|
||||
2A82294E29262EE000D2A1F7 /* AppContext+NextAccount.swift */,
|
||||
5DF1056325F887CB00D6C0D4 /* AVPlayer.swift */,
|
||||
2D206B8525F5FB0900143C56 /* Double.swift */,
|
||||
@ -3317,7 +3314,6 @@
|
||||
DB5B549D2833A67400DEF8B2 /* FamiliarFollowersViewModel.swift in Sources */,
|
||||
DBB9759C262462E1004620BD /* ThreadMetaView.swift in Sources */,
|
||||
DB5B729E273113F300081888 /* FollowingListViewModel+State.swift in Sources */,
|
||||
2DF123A725C3B0210020F248 /* ActiveLabel.swift in Sources */,
|
||||
DBF9814C265E339500E4BA07 /* ProfileFieldAddEntryCollectionViewCell.swift in Sources */,
|
||||
DB63F76227996B6600455B82 /* SearchHistoryViewController+DataSourceProvider.swift in Sources */,
|
||||
DB73BF4927140BA300781945 /* UICollectionViewDiffableDataSource.swift in Sources */,
|
||||
|
@ -1,66 +0,0 @@
|
||||
//extension ActiveEntity {
|
||||
//
|
||||
// var accessibilityLabelDescription: String {
|
||||
// switch self.type {
|
||||
// case .email: return L10n.Common.Controls.Status.Tag.email
|
||||
// case .hashtag: return L10n.Common.Controls.Status.Tag.hashtag
|
||||
// case .mention: return L10n.Common.Controls.Status.Tag.mention
|
||||
// case .url: return L10n.Common.Controls.Status.Tag.url
|
||||
// case .emoji: return L10n.Common.Controls.Status.Tag.emoji
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// var accessibilityValueDescription: String {
|
||||
// switch self.type {
|
||||
// case .email(let text, _): return text
|
||||
// case .hashtag(let text, _): return text
|
||||
// case .mention(let text, _): return text
|
||||
// case .url(_, let trimmed, _, _): return trimmed
|
||||
// case .emoji(let text, _, _): return text
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// func accessibilityElement(in accessibilityContainer: Any) -> ActiveLabelAccessibilityElement? {
|
||||
// if case .emoji = self.type {
|
||||
// return nil
|
||||
// }
|
||||
//
|
||||
// let element = ActiveLabelAccessibilityElement(accessibilityContainer: accessibilityContainer)
|
||||
// element.accessibilityTraits = .button
|
||||
// element.accessibilityLabel = accessibilityLabelDescription
|
||||
// element.accessibilityValue = accessibilityValueDescription
|
||||
// return element
|
||||
// }
|
||||
//}
|
||||
|
||||
//final class ActiveLabelAccessibilityElement: UIAccessibilityElement {
|
||||
// var index: Int!
|
||||
//}
|
||||
//
|
||||
// MARK: - UIAccessibilityContainer
|
||||
//extension ActiveLabel {
|
||||
//
|
||||
// func createAccessibilityElements() -> [UIAccessibilityElement] {
|
||||
// var elements: [UIAccessibilityElement] = []
|
||||
//
|
||||
// let element = ActiveLabelAccessibilityElement(accessibilityContainer: self)
|
||||
// element.accessibilityTraits = .staticText
|
||||
// element.accessibilityLabel = accessibilityLabel
|
||||
// element.accessibilityFrame = superview!.convert(frame, to: nil)
|
||||
// element.accessibilityLanguage = accessibilityLanguage
|
||||
// elements.append(element)
|
||||
//
|
||||
// for entity in activeEntities {
|
||||
// guard let element = entity.accessibilityElement(in: self) else { continue }
|
||||
// var glyphRange = NSRange()
|
||||
// layoutManager.characterRange(forGlyphRange: entity.range, actualGlyphRange: &glyphRange)
|
||||
// let rect = layoutManager.boundingRect(forGlyphRange: glyphRange, in: textContainer)
|
||||
// element.accessibilityFrame = self.convert(rect, to: nil)
|
||||
// element.accessibilityContainer = self
|
||||
// elements.append(element)
|
||||
// }
|
||||
//
|
||||
// return elements
|
||||
// }
|
||||
//
|
||||
//}
|
Loading…
x
Reference in New Issue
Block a user