david-swift 7eeec9e0fd
All checks were successful
Deploy Docs / publish (push) Successful in 1h45m1s
SwiftLint / SwiftLint (push) Successful in 5s
Add support for GtkEntry
2025-04-19 19:03:26 +02:00

22 lines
408 B
Swift

//
// Entry+.swift
// Adwaita
//
// Created by david-swift on 19.04.25.
//
extension Entry {
/// Initialize an entry.
/// - Parameters:
/// - placeholder: The placeholder text.
/// - text: The value.
public init(_ placeholder: String, text: Binding<String>) {
self.init()
self = self
.text(text)
.placeholderText(placeholder)
}
}