You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added `.center` presentation style with a physics-based dismissal gesture.
8
+
* Added `.custom(animator:)` presentation style, where you provide an instance of the `Animator` protocol. The `TopBottomAnimation` and `CenterAnimation` animations both implement `Animator` and may be subclassed (configuration options will be added in a future release). `PhysicsPanHandler` class to provide a physics-based dismissal gesture.
9
+
* Added `.centered` message view layout with elements centered and arranged vertically.
10
+
* Added `configureBackgroundView(width:)` and `configureBackgroundView(sideMargin:)` convenience methods to `MessageView`.
Copy file name to clipboardexpand all lines: Demo/Demo.xcodeproj/project.pbxproj
+1-1
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@
212
212
);
213
213
runOnlyForDeploymentPostprocessing = 0;
214
214
shellPath = /bin/sh;
215
-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
215
+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
Copy file name to clipboardexpand all lines: Demo/Demo/ViewController.swift
+23-10
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ class ViewController: UITableViewController {
16
16
.titleBody(title:"ANY VIEW", body:"Any view, no matter how cute, can be displayed as a message.", function:ViewController.demoAnyView),
17
17
.titleBody(title:"CUSTOMIZE", body:"Easily customize by copying one of the SwiftMessages nib files into your project as a starting point. Then order some tacos.", function:ViewController.demoCustomNib),
18
18
.explore,
19
+
.titleBody(title:"CENTERED", body:"Show cenetered messages with a fun, physics-based dismissal gesture.", function:ViewController.demoCentered),
19
20
]
20
21
21
22
/*
@@ -55,12 +56,12 @@ class ViewController: UITableViewController {
55
56
56
57
staticfunc demoBasics()->Void{
57
58
58
-
leterror=MessageView.viewFromNib(layout:.TabView)
59
+
leterror=MessageView.viewFromNib(layout:.tabView)
59
60
error.configureTheme(.error)
60
61
error.configureContent(title:"Error", body:"Something is horribly wrong!")
info.configureContent(title:"Info", body:"This is a very lengthy and informative info message that wraps across multiple lines and grows in height as needed.")
0 commit comments