Skip to content

Instantly share code, notes, and snippets.

View StewartLynch's full-sized avatar

Stewart Lynch StewartLynch

View GitHub Profile
@StewartLynch
StewartLynch / RemoveMoreButton.swift
Created January 29, 2025 21:20
Remove More Button from TabView
import SwiftUI
// KavSoft Solution for removing More Button for Tab Bar SwiftUI
// https://www.youtube.com/watch?v=zSHBePAXJCs
struct RemoveMoreButton: UIViewRepresentable {
var result: () -> ()
func makeUIView(context: Context) -> UIView {
let view = UIView(frame: .zero)
import SwiftUI
struct <#ViewName#>: View, OverTopable {
let title: String
let choices: [<#Type#>]
let current: <#Type#>
@State var updatedContent: <#Type#>
let hasTwoButtons: Bool
@Binding var showOverTop: Bool
var update: (<#Type#>) -> ()
import SwiftUI
extension Binding {
/// Binding to an optional value by providing a defatult value.
///
/// example
///
/// struct Sample: View {
/// @Binding var name: String?
///