This repository was archived by the owner on Jan 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,6 +166,16 @@ extension TPTweakEntry {
166166 type: TPTweakEntryType . switch ( defaultValue: false , completion: nil )
167167 )
168168 }
169+
170+ public static var _internal_tptweak_always_show_search_bar : TPTweakEntry {
171+ TPTweakEntry (
172+ category: " _tptweak " ,
173+ section: " Layout " ,
174+ cell: " Always Show Search Bar " ,
175+ footer: " " ,
176+ type: TPTweakEntryType . switch ( defaultValue: false , completion: nil )
177+ )
178+ }
169179}
170180
171181// MARK: - indentifier helper
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ public final class TPTweakViewController: UIViewController {
272272
273273 // setup search
274274 navigationItem. searchController = searchController
275- navigationItem. hidesSearchBarWhenScrolling = true
275+ navigationItem. hidesSearchBarWhenScrolling = ! ( TPTweakEntry . _internal_tptweak_always_show_search_bar . getValue ( Bool . self ) ?? false )
276276
277277 // register gesture
278278 navigationController? . navigationBar. isUserInteractionEnabled = true
@@ -332,7 +332,7 @@ public final class TPTweakViewController: UIViewController {
332332
333333 return value
334334 } else {
335- return entry. cell
335+ return entry. section
336336 }
337337 }
338338
@@ -396,6 +396,7 @@ extension TPTweakViewController {
396396 let entries : [ TPTweakEntry ] = [
397397 . _internal_tptweak_layout,
398398 . _internal_tptweak_isMinimizable,
399+ . _internal_tptweak_always_show_search_bar,
399400 . _internal_tptweak_peepOpacity,
400401 . clearCache
401402 ]
You can’t perform that action at this time.
0 commit comments