Skip to content

Paulo's solution for challenge #1#1

Open
paulofierro wants to merge 1 commit into
swift-miami:masterfrom
paulofierro:master
Open

Paulo's solution for challenge #1#1
paulofierro wants to merge 1 commit into
swift-miami:masterfrom
paulofierro:master

Conversation

@paulofierro

@paulofierro paulofierro commented Jan 11, 2020

Copy link
Copy Markdown
Member

My solution uses the tag property on UIView in the ordering mechanism.

I added a view property to the Views enum which returns a fully constructed UIView for each case in the enum. These are then added to my SelfSortingStackView which takes care of ordering them based on the chosen order.

I also added a toolbar with buttons to change the order and add new views to the stack. Tapping on a view in the stack removes it.

challenge

@paulofierro paulofierro changed the title Added my solution Paulo's solution for challenge #1 Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant