Latest 0.1
Homepage https://github.com/swarut/TWWidget
License BSD
Platforms ios 6.0, requires ARC
Authors

TWWidget, a widget library for Taskworld mobile app.

TODO: Add more features.

Usage Example

Displaying image view with filled-circle background.

  TWWidget* widget = [TWWidget viewWidgetWithFrame:CGRectMake(0, 0, 40, 40)];
  widget.imageName = @"icon_critical";
  widget.backgroundColor = [UIColor greenColor];

  widget.widgetDisplayMode = TWWidgetDisplayModeCircle;
  [self.contentView addSubview:widget];

Displaying text view with filled-rectangle background.

  TWWidget* widget = [TWWidget viewWidgetWithFrame:CGRectMake(0, 0, 40, 40)];
  widget.text = @"Hello";
  widget.backgroundColor = [UIColor greenColor];

  widget.widgetDisplayMode = TWWidgetDisplayModeRectangle;
  [self.contentView addSubview:widget];

Latest podspec

{
    "name": "TWWidget",
    "version": "0.1",
    "summary": "TWWidget is a widget library for Taskworld mobile app.",
    "homepage": "https://github.com/swarut/TWWidget",
    "license": {
        "type": "BSD",
        "file": "LICENSE.md"
    },
    "authors": {
        "Warut Surapat": "[email protected]"
    },
    "source": {
        "git": "https://github.com/swarut/TWWidget.git",
        "tag": "0.1"
    },
    "source_files": "TWWidget",
    "requires_arc": true,
    "platforms": {
        "ios": "6.0"
    }
}

Pin It on Pinterest

Share This