Skip to content

Commit f88a2e2

Browse files
Change 'with' parameter to 'aligned'
1 parent f7a6e27 commit f88a2e2

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

Rye/Rye/RyeViewController.swift

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class RyeViewController: UIViewController {
5151

5252
// MARK: - Init
5353

54-
/// Instantiate a new Rye
54+
/// Instantiate a new RyeViewController
5555
/// - Parameters:
5656
/// - dismissMode: the Rye AlertType
5757
/// - viewType: the Rye ViewType, contains the UIView + Configuration
@@ -61,7 +61,7 @@ public class RyeViewController: UIViewController {
6161
dismissMode: Rye.DismissMode = .automatic(interval: Rye.defaultDismissInterval),
6262
viewType: Rye.ViewType = .standard(configuration: nil),
6363
at position: Rye.Position = .bottom(inset: 16),
64-
with alignment: Rye.Alignment = .center
64+
aligned alignment: Rye.Alignment = .center
6565
) {
6666
self.dismissMode = dismissMode
6767
self.viewType = viewType
@@ -85,14 +85,12 @@ public class RyeViewController: UIViewController {
8585
isShowing = UIApplication.shared.windows.contains(where: {$0.windowLevel == .alert})
8686
}
8787

88-
/**
89-
Creates RyeViewController
90-
91-
- Parameter alertType: the Rye AlertType
92-
- Parameter viewType: the Rye ViewType, contains the UIView + Configuration
93-
- Parameter position: contains the possition where the RyeView should be displayed on screen
94-
- Parameter timeAlive: Represents the duration for the RyeView to be displayed to the user. If nil is provided, then you will be responsable of removing the RyeView
95-
*/
88+
/// Instantiate a new RyeViewController
89+
/// - Parameters:
90+
/// - alertType: the Rye AlertType
91+
/// - viewType: the Rye ViewType, contains the UIView + Configuration
92+
/// - position: contains the possition where the RyeView should be displayed on screen
93+
/// - timeAlive: Represents the duration for the RyeView to be displayed to the user. If nil is provided, then you will be responsable of removing the RyeView
9694
@available(*, deprecated, message: "Please see the README section \"Updating from v1.x.x to v2.0.0\" for notes on how to update")
9795
public convenience init(alertType: Rye.AlertType = .toast,
9896
viewType: Rye.ViewType = .standard(configuration: nil),

Rye/RyeExample/Rye VC/RyeDemoViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class RyeDemoViewController: UITableViewController {
190190
dismissMode: dismissMode,
191191
viewType: selectedViewType,
192192
at: position,
193-
with: alignment
193+
aligned: alignment
194194
)
195195

196196
ryeViewController?.show(withDismissCompletion: {

0 commit comments

Comments
 (0)