Procházet zdrojové kódy

Enable text selection to copy SHA

Allows users to long-press to easily copy the SHA of Trio or of a specific submodule.
Mike Plante před 4 týdny
rodič
revize
87ffec4372

+ 1 - 0
Trio/Sources/Modules/Settings/View/Subviews/SubmodulesView.swift

@@ -32,6 +32,7 @@ struct KeyValueRow: View {
             Text(value)
             Text(value)
                 .foregroundColor(.secondary)
                 .foregroundColor(.secondary)
                 .multilineTextAlignment(.trailing)
                 .multilineTextAlignment(.trailing)
+                .textSelection(.enabled)
         }
         }
     }
     }
 }
 }