OpenCraft / Whiteboard

0 stars 0 forks source link

Customized animated HUD #2

Open giovanepossebon opened 8 years ago

giovanepossebon commented 8 years ago

Build a lib with a customized HUD, which you can set an array of images to animated the hud when instantiated, and if you don't, use a default spinner;

References:

https://github.com/jdg/MBProgressHUD -> Layout and Behavior; https://github.com/goktugyil/EZLoadingActivity -> Usage

Morbix commented 8 years ago

How will we named this lib?

giovanepossebon commented 8 years ago

Cool, another suggestion: "OCAnimatedHud"

Morbix commented 8 years ago

Animated suggest too much importance for the animation feature. Like if the diference against other HUDS is the animation, but it is not. Is just another HUD with a mix of common others features.

Morbix commented 8 years ago

We need two things: a lib name, and class/struct name for usage.

giovanepossebon commented 8 years ago

We can use OCHud for the lib, and a struct with a simple name like "hud", which sounds natural and simple in the middle of the code and it's not reserved or similar to anything from native framework...

Morbix commented 8 years ago

Some syntax examples:

giovanepossebon commented 8 years ago

I prefer the first example! But the last one is OK too!

Morbix commented 8 years ago

I thing the SwiftLint will claim about the first character not capitalized.

Morbix commented 8 years ago
Morbix commented 8 years ago

The first version with SpinnerHUD was released: https://github.com/OpenCraft/OCHuds

Morbix commented 8 years ago

@giovanepossebon I think we can close this issue, can't we?