Skip to content

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

@andrewkrechmer

Description

@andrewkrechmer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions