API Design With Custom UIButton

Flatten Button

State

enum State {    case regular    case loading}

Regular

Loading

Updating the title’s text & color

Update the UI

Constraints

calling setTitle:

Changing state

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ali Fakih

Ali Fakih

Software Developer, Tech enthusiastic, iOS #swift \\ Android #kotlin