Skip to content

Commit

Permalink
Merge pull request #9 from soramitsu/feature/animated-text-field
Browse files Browse the repository at this point in the history
Animated text field
  • Loading branch information
ERussel authored Sep 22, 2020
2 parents f9e772b + b757168 commit b174f0d
Show file tree
Hide file tree
Showing 9 changed files with 801 additions and 32 deletions.
48 changes: 24 additions & 24 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
PODS:
- SoraUI (1.9.1):
- SoraUI/AdaptiveDesign (= 1.9.1)
- SoraUI/Animator (= 1.9.1)
- SoraUI/Camera (= 1.9.1)
- SoraUI/Controls (= 1.9.1)
- SoraUI/DetailsView (= 1.9.1)
- SoraUI/EmptyState (= 1.9.1)
- SoraUI/LoadingView (= 1.9.1)
- SoraUI/ModalPresentation (= 1.9.1)
- SoraUI/PageLoader (= 1.9.1)
- SoraUI/PinView (= 1.9.1)
- SoraUI/Skrull (= 1.9.1)
- SoraUI/AdaptiveDesign (1.9.1)
- SoraUI/Animator (1.9.1)
- SoraUI/Camera (1.9.1)
- SoraUI/Controls (1.9.1)
- SoraUI/DetailsView (1.9.1):
- SoraUI (1.9.2):
- SoraUI/AdaptiveDesign (= 1.9.2)
- SoraUI/Animator (= 1.9.2)
- SoraUI/Camera (= 1.9.2)
- SoraUI/Controls (= 1.9.2)
- SoraUI/DetailsView (= 1.9.2)
- SoraUI/EmptyState (= 1.9.2)
- SoraUI/LoadingView (= 1.9.2)
- SoraUI/ModalPresentation (= 1.9.2)
- SoraUI/PageLoader (= 1.9.2)
- SoraUI/PinView (= 1.9.2)
- SoraUI/Skrull (= 1.9.2)
- SoraUI/AdaptiveDesign (1.9.2)
- SoraUI/Animator (1.9.2)
- SoraUI/Camera (1.9.2)
- SoraUI/Controls (1.9.2)
- SoraUI/DetailsView (1.9.2):
- SoraUI/Controls
- SoraUI/EmptyState (1.9.1):
- SoraUI/EmptyState (1.9.2):
- SoraUI/Animator
- SoraUI/LoadingView (1.9.1):
- SoraUI/LoadingView (1.9.2):
- SoraUI/Controls
- SoraUI/ModalPresentation (1.9.1):
- SoraUI/ModalPresentation (1.9.2):
- SoraUI/Animator
- SoraUI/Controls
- SoraUI/PageLoader (1.9.1)
- SoraUI/PinView (1.9.1):
- SoraUI/PageLoader (1.9.2)
- SoraUI/PinView (1.9.2):
- SoraUI/Controls
- SoraUI/Skrull (1.9.1)
- SoraUI/Skrull (1.9.2)

DEPENDENCIES:
- SoraUI (from `../`)
Expand All @@ -37,7 +37,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
SoraUI: 57c166bce5a249727343a1e28d6148284f631afc
SoraUI: b0bba88160397ef4f1543f4c1841569b7a614579

PODFILE CHECKSUM: bb766dae3a5ddd7acf3a123997936163f86b09c0

Expand Down
16 changes: 16 additions & 0 deletions Example/SoraUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
84530A34223A975900AD7598 /* DetailsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 84530A33223A975900AD7598 /* DetailsViewController.xib */; };
84754C80250FB24400854599 /* ModalAlertPresentationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84754C7E250FB24400854599 /* ModalAlertPresentationViewController.swift */; };
84754C81250FB24400854599 /* ModalAlertPresentationViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 84754C7F250FB24400854599 /* ModalAlertPresentationViewController.xib */; };
849244972518D93900477C1B /* AnimatedTextViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849244962518D93900477C1B /* AnimatedTextViewController.swift */; };
849244992518D96C00477C1B /* AnimatedTextViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 849244982518D96C00477C1B /* AnimatedTextViewController.xib */; };
84FA008F22699DEF005DA950 /* EmptyStateViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84FA008E22699DEF005DA950 /* EmptyStateViewController.swift */; };
84FA009122699DFF005DA950 /* EmptyStateViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 84FA009022699DFF005DA950 /* EmptyStateViewController.xib */; };
84FA6E19228965FB003B9D40 /* ModalSheetPresentationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84FA6E18228965FB003B9D40 /* ModalSheetPresentationViewController.swift */; };
Expand Down Expand Up @@ -90,6 +92,8 @@
84530A33223A975900AD7598 /* DetailsViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DetailsViewController.xib; sourceTree = "<group>"; };
84754C7E250FB24400854599 /* ModalAlertPresentationViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ModalAlertPresentationViewController.swift; sourceTree = "<group>"; };
84754C7F250FB24400854599 /* ModalAlertPresentationViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ModalAlertPresentationViewController.xib; sourceTree = "<group>"; };
849244962518D93900477C1B /* AnimatedTextViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimatedTextViewController.swift; sourceTree = "<group>"; };
849244982518D96C00477C1B /* AnimatedTextViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AnimatedTextViewController.xib; sourceTree = "<group>"; };
84FA008E22699DEF005DA950 /* EmptyStateViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyStateViewController.swift; sourceTree = "<group>"; };
84FA009022699DFF005DA950 /* EmptyStateViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = EmptyStateViewController.xib; sourceTree = "<group>"; };
84FA6E18228965FB003B9D40 /* ModalSheetPresentationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModalSheetPresentationViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -219,6 +223,7 @@
607FACD21AFB9204008FA782 /* Example for SoraUI */ = {
isa = PBXGroup;
children = (
849244952518D92000477C1B /* AnimatedTextView */,
84754C79250FB1D600854599 /* ModalAlertPresentation */,
F8F85F6B24977456003FDC3F /* ChildViewColntroller */,
843F0A8522BC0DEF005B369F /* SkeletonView */,
Expand Down Expand Up @@ -315,6 +320,15 @@
path = ModalAlertPresentation;
sourceTree = "<group>";
};
849244952518D92000477C1B /* AnimatedTextView */ = {
isa = PBXGroup;
children = (
849244962518D93900477C1B /* AnimatedTextViewController.swift */,
849244982518D96C00477C1B /* AnimatedTextViewController.xib */,
);
path = AnimatedTextView;
sourceTree = "<group>";
};
84FA008D22699DCF005DA950 /* EmptyStateViewController */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -444,6 +458,7 @@
028547E32208873100A40F41 /* SegmentedControlViewController.xib in Resources */,
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */,
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
849244992518D96C00477C1B /* AnimatedTextViewController.xib in Resources */,
84FA6E1B22898714003B9D40 /* ModalSheetPresentationViewController.xib in Resources */,
027A3D9721C156E00020B66A /* TextCodeViewController.xib in Resources */,
84530A34223A975900AD7598 /* DetailsViewController.xib in Resources */,
Expand Down Expand Up @@ -539,6 +554,7 @@
027A3D9C21C15A440020B66A /* LoadingViewController.swift in Sources */,
027A3DB721C248880020B66A /* ActionTitleViewController.swift in Sources */,
84754C80250FB24400854599 /* ModalAlertPresentationViewController.swift in Sources */,
849244972518D93900477C1B /* AnimatedTextViewController.swift in Sources */,
607FACD81AFB9204008FA782 /* ListViewController.swift in Sources */,
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
84FA6E19228965FB003B9D40 /* ModalSheetPresentationViewController.swift in Sources */,
Expand Down
20 changes: 20 additions & 0 deletions Example/SoraUI/AnimatedTextView/AnimatedTextViewController.swift
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()
}
}
Loading

0 comments on commit b174f0d

Please sign in to comment.