Creating a Swift type for button input on nRF52 - Part 2

Introduction In the last post, Creating a Swift type for button input on nRF52 - Part 1 , we worked on code to abstract interacting with a button in Swift code. We had a working prototype, but things fell apart as soon as we cleaned up the code and encapsulated it in a struct. Investigating the issue Let&rsquo;s see if there&rsquo;s valuable information in the documentation. /** * @brief GPIO…