Skip to content

Commit

Permalink
support Xcode12
Browse files Browse the repository at this point in the history
  • Loading branch information
noppefoxwolf committed Jul 24, 2021
1 parent 0d5b441 commit 1c7a788
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/DebugMenu/View/InAppDebuggerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,13 @@ extension InAppDebuggerViewController {
[weak self] (headerView, elementKind, indexPath) in
var configuration = headerView.defaultContentConfiguration()
if #available(iOSApplicationExtension 15.0, *) {
#if compiler(>=5.5)
configuration.text =
self?.dataSource.sectionIdentifier(for: indexPath.section)?.title
#else
// FIXME: Index is wrong when unused showsRecentItems
configuration.text = Section(rawValue: indexPath.section)?.title
#endif
} else {
// FIXME: Index is wrong when unused showsRecentItems
configuration.text = Section(rawValue: indexPath.section)?.title
Expand Down

0 comments on commit 1c7a788

Please sign in to comment.