Ekhoo / Device

Light weight tool for detecting the current device and screen size written in swift.
MIT License
1.7k stars 202 forks source link

enhancement: Device info` func` to singleton #42

Open cruisediary opened 7 years ago

cruisediary commented 7 years ago

how about creating variable like singleton than func size, type, version

because after once called, size, type, version never changed in same device

everytime, when use Device.size(), Device.getVersion() ... every time calculated