Disable smart quotes on search bar

This commit is contained in:
Jackson Harper 2023-12-13 11:48:01 +08:00
parent 421de02969
commit d553352ddd
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Jackson Harper on 12/13/23.
//
import Foundation

View file

@ -75,6 +75,7 @@
innerBody
}.introspectViewController { controller in
searchBar = Introspect.findChild(ofType: UISearchBar.self, in: controller.view)
searchBar?.smartQuotesType = .no
}
}

View file

@ -0,0 +1,17 @@
import Foundation
import SwiftUI
struct SelectBadgeFilterView: View {
@ObservedObject var viewModel: FiltersViewModel
var body: some View {
List {
ForEach(viewModel.libraryFilters) { filter in
HStack {
Text(filter.name)
Spacer()
}
}
}
}
}