diff --git a/Assets/demo.gif b/Assets/demo.gif
new file mode 100644
index 0000000..30a4f39
Binary files /dev/null and b/Assets/demo.gif differ
diff --git a/MTDemo/MTDemo/Base.lproj/Main.storyboard b/MTDemo/MTDemo/Base.lproj/Main.storyboard
index e34fea5..c00244e 100644
--- a/MTDemo/MTDemo/Base.lproj/Main.storyboard
+++ b/MTDemo/MTDemo/Base.lproj/Main.storyboard
@@ -18,31 +18,44 @@
-
+
+
+
+
+
+
+
+
diff --git a/MTDemo/MTDemo/ViewController.m b/MTDemo/MTDemo/ViewController.m
index 659401b..8b22077 100644
--- a/MTDemo/MTDemo/ViewController.m
+++ b/MTDemo/MTDemo/ViewController.m
@@ -78,12 +78,12 @@ - (void)handleFooNotification:(NSNotification *)notification
{
NSDate *date = notification.userInfo[@"arg"];
NSDateFormatter *df = [NSDateFormatter new];
- [df setDateFormat:@"dd/MM/yyyy HH:mm:ss"];
+ [df setDateFormat:@"dd/MM/yyyy\nHH:mm:ss"];
df.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:[NSTimeZone localTimeZone].secondsFromGMT];
NSString *localDateString = [df stringFromDate:date];
dispatch_async(dispatch_get_main_queue(), ^{
- self.label.text = [NSString stringWithFormat:@"Last Fire Date: %@", localDateString];
+ self.label.text = [NSString stringWithFormat:@"Last Fire Date:\n%@", localDateString];
});
}
diff --git a/README.md b/README.md
index 921437c..db34cf3 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,8 @@ MessageThrottle is a lightweight, simple library for controlling frequency of fo
To run the example project, clone the repo and run MTDemo target.
+![](Assets/demo.gif)
+
## 🐒 How to use
The following example shows how to restrict the frequency of forwarding `- [ViewController foo:]` message to 100 times per second.