Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'searchTextField' is only available in iOS 13.0 or newer #13

Open
andrewkrechmer opened this issue Feb 5, 2021 · 0 comments
Open

'searchTextField' is only available in iOS 13.0 or newer #13

andrewkrechmer opened this issue Feb 5, 2021 · 0 comments

Comments

@andrewkrechmer
Copy link

Description

'searchTextField' is only available in iOS 13.0 or newer error in AddArtistsViewController.configureSearchController()

Expected Behavior

searchBar.searchTextField.textColor = ColorPreference.mainColor should only run for devices running iOS 13 +

Actual Behavior

searchBar.searchTextField.textColor = ColorPreference.mainColor is run on devices running lower than iOS 13 as well as iOS 13 +

Steps to Reproduce the Problem

  1. Attempt to compile with deployment target of iOS 12 or lower

Possible solution

Add 'if #available' version check

Specifications

  • XCode Version: 12.4

<- Delete if none ->

Screenshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant