What do you want to save?
Add Code snippet
New code examples in category Swift
-
Trancot 2021-09-18 23:54:03
swiftui textfield multiline
//You can use the .multiLineTextAlignment modifier TextField("Random text", text: $text) .multiLineTextAlignment(.leading) //This aligns the text to the left //There are more propeties besides .leading, more can be found at the source Add solution -
Synergist 2021-09-18 00:51:02
swift swipe gesture
override func viewDidLoad() { super.viewDidLoad() let leftSwipe = UISwipeGestureRecognizer(target: self, action: #selector(handleSwipes(_:))) let rightSwipe = UISwipeGestureRecognizer(target: self, action: #selector(handleSwipes(_:)))... Add solution -
Den Warren 2021-09-17 12:27:04
print hello world in swift
print("Hello World") Add solution