shinydevelopment / SimulatorStatusMagic

Clean up your status bar for taking screenshots on the iOS simulator.
MIT License
2.35k stars 139 forks source link

Base the SDStatusBarManagerNetworkTypeKey enum on the integer type that is used in the data struct. #93

Closed chrisvasselli closed 3 years ago

chrisvasselli commented 3 years ago

Fixes warnings introduced in Xcode 12.

A little bit of a different approach than that in https://github.com/shinydevelopment/SimulatorStatusMagic/pull/90, by just using unsigned int as the base type for the enum. I don't think it will actually behave any differently, but avoids having to cast everywhere, and more clearly shows that the enum is expected to fit in an unsigned int.