Skip to content

Commit

Permalink
Add compile time check for xcode on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper committed Apr 21, 2024
1 parent 64e7597 commit b9e8f13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NextcloudTalk/InputbarViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,12 @@ import UIKit
self.textView.layoutSubviews()
self.textView.layer.cornerRadius = self.textView.frame.size.height / 2

// Need a compile-time check here for old xcode version on CI
#if swift(>=5.9)
if #available(iOS 17.0, *), NCUtils.isiOSAppOnMac() {
self.textView.inlinePredictionType = .no
}
#endif

self.textInputbar.editorTitle.textColor = .darkGray
self.textInputbar.editorLeftButton.tintColor = .systemBlue
Expand Down

0 comments on commit b9e8f13

Please sign in to comment.