Skip to content

Instantly share code, notes, and snippets.

View lacrlumston's full-sized avatar

Luis Angel Chavez Reyes lacrlumston

View GitHub Profile
@unnamedd
unnamedd / TextBorderBottom.swift
Last active September 11, 2023 21:54
[SwiftUI] Text + Border Bottom
var body: some View {
Group {
Text(language.name)
.font(.body)
.padding([.leading, .trailing], 10)
.padding([.top, .bottom], 5)
.background(Color.gray)
.overlay(
Rectangle()
.frame(height: 4)
@jplazcano87
jplazcano87 / createDoneButton.swift
Created December 28, 2015 15:13
Add Done Button to Numeric pad iOS (Swift)
@IBOutlet weak var txtNumber: UITextField!
override func viewDidLoad()
{
super.viewDidLoad()
//--- add UIToolBar on keyboard and Done button on UIToolBar ---//
self.addDoneButtonOnKeyboard()
}