@@ -540,6 +540,20 @@ struct GlassIconButtonStyle: ButtonStyle {
540540 }
541541}
542542
543+ // Small capsule "BETA" tag for nav bar
544+ private struct BetaTag : View {
545+ var body : some View {
546+ Text ( " BETA " )
547+ . font ( . caption2. weight ( . bold) )
548+ . padding ( . horizontal, 8 )
549+ . padding ( . vertical, 4 )
550+ . background ( Color . orange. opacity ( 0.9 ) , in: Capsule ( ) )
551+ . foregroundStyle ( . white)
552+ . overlay ( Capsule ( ) . stroke ( . white. opacity ( 0.2 ) , lineWidth: 1 ) )
553+ . accessibilityLabel ( " Beta " )
554+ }
555+ }
556+
543557// MARK: - Custom glassy tab switcher (Repos disabled; only Testing)
544558
545559enum ManagerSection : String , CaseIterable , Identifiable {
@@ -612,6 +626,7 @@ private struct CertPickerSheet: View {
612626 let certs : [ Certificate ]
613627 @Binding var selectedID : UUID ?
614628 var onAdd : ( ) -> Void
629+ var onDelete : ( Certificate ) -> Void
615630 @Environment ( \. dismiss) private var dismiss
616631
617632 var body : some View {
@@ -630,6 +645,12 @@ private struct CertPickerSheet: View {
630645 . contentShape ( Rectangle ( ) )
631646 . onTapGesture { selectedID = cert. id; dismiss ( ) }
632647 }
648+ . onDelete { idx in
649+ for i in idx {
650+ let c = certs [ i]
651+ onDelete ( c)
652+ }
653+ }
633654 Button {
634655 dismiss ( )
635656 onAdd ( )
@@ -785,6 +806,11 @@ struct IPAAppManagerView: View {
785806 // Show nav bar title again
786807 . navigationTitle ( " Testing " )
787808 . navigationBarTitleDisplayMode ( . large)
809+ . toolbar {
810+ ToolbarItem ( placement: . topBarTrailing) {
811+ BetaTag ( )
812+ }
813+ }
788814 . stikImporter ( isPresented: $pickerShown,
789815 selectedURLs: . constant( [ ] ) ,
790816 allowedContentTypes: [ . item] ,
@@ -880,7 +906,8 @@ struct IPAAppManagerView: View {
880906 CertPickerSheet (
881907 certs: mgr. certs,
882908 selectedID: $mgr. selectedCertID,
883- onAdd: { showAddCert = true }
909+ onAdd: { showAddCert = true } ,
910+ onDelete: { cert in mgr. deleteCert ( cert) }
884911 )
885912 }
886913
0 commit comments