Skip to content
This repository was archived by the owner on Jul 12, 2019. It is now read-only.

Swift4 api addition#3

Open
Nordeast wants to merge 8 commits intoalikaragoz:masterfrom
Nordeast:swift4_api_addition
Open

Swift4 api addition#3
Nordeast wants to merge 8 commits intoalikaragoz:masterfrom
Nordeast:swift4_api_addition

Conversation

@Nordeast
Copy link

@Nordeast Nordeast commented Oct 4, 2017

This is a branch off of the swift 4 updated pull request. It adds a return value to all of the animate methods. The return value is the DaisyChain instance. This allows for a simpler syntax if the user prefers.

i.e.

let chain = DaisyChain()

chain.animate(withDuration: 0.5, animations: {
    view.center = CGPoint(x: 0.0, y: 0.0)
}).animate(withDuration: 0.5, animations: {
    view.center = CGPoint(x: 100.0, y: 0.0)
}).animate(withDuration: 0.5, animations: {
    view.center = CGPoint(x: 100.0, y: 100.0)
}).animate(withDuration: 0.5, animations: {
    view.center = CGPoint(x: 0.0, y: 100.0)
}).animate(withDuration: 0.5, animations: {
    view.center = CGPoint(x: 0.0, y: 0.0)
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant