Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
asahiocean
SZRCAI
Commits
635b0da1
Verified
Commit
635b0da1
authored
Jul 05, 2021
by
asahiocean
🚀
Browse files
commit
parent
a66d5c40
Changes
1
Show whitespace changes
Inline
Side-by-side
SZRCAI/SZRCAI/Main code/Controllers/ViewController/Extensions/buttonsSetup+ViewController.swift
View file @
635b0da1
...
...
@@ -30,10 +30,8 @@ extension ViewController {
func
buttonsAnimator
(
state
:
state
)
{
let
value
=
view
.
bounds
.
maxY
*
state
.
rawValue
UIView
.
animate
(
withDuration
:
0.25
,
delay
:
0
,
options
:
[
.
curveEaseInOut
],
animations
:
{
[
weak
self
]
in
// - - Main button - -
self
?
.
mainButton
.
frame
.
origin
.
y
=
value
self
?
.
mainButton
.
layoutIfNeeded
()
// - - Clear button - -
self
?
.
clearButton
.
frame
.
origin
.
y
=
value
self
?
.
clearButton
.
layoutIfNeeded
()
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment