-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from soramitsu/feature/animated-text-field
Animated text field
- Loading branch information
Showing
9 changed files
with
801 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Example/SoraUI/AnimatedTextView/AnimatedTextViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import UIKit | ||
import SoraUI | ||
|
||
final class AnimatedTextViewController: UIViewController { | ||
@IBOutlet private var name1Field: AnimatedTextField! | ||
@IBOutlet private var name2Field: AnimatedTextField! | ||
|
||
@IBAction private func actionName1Change() { | ||
name2Field.text = name1Field.text | ||
} | ||
|
||
@IBAction private func actionName2Change() { | ||
name1Field.text = name2Field.text | ||
} | ||
|
||
@IBAction private func actionDone() { | ||
name1Field.resignFirstResponder() | ||
name2Field.resignFirstResponder() | ||
} | ||
} |
Oops, something went wrong.