Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WordPressAuthenticator.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "WordPressAuthenticator"
s.version = "1.28.0"
s.version = "1.29.0-beta.1"
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."

s.description = <<-DESC
Expand Down
12 changes: 6 additions & 6 deletions WordPressAuthenticator/Signin/LoginPrologueViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class LoginPrologueViewController: LoginViewController {

/// Constraints on the button view container.
/// Used to adjust the button width in unified views.
@IBOutlet private weak var buttonViewLeadingConstraint: NSLayoutConstraint!
@IBOutlet private weak var buttonViewTrailingConstraint: NSLayoutConstraint!
@IBOutlet private weak var buttonViewLeadingConstraint: NSLayoutConstraint?
@IBOutlet private weak var buttonViewTrailingConstraint: NSLayoutConstraint?
private var defaultButtonViewMargin: CGFloat = 0

// Called when login button is tapped
Expand Down Expand Up @@ -544,8 +544,8 @@ private extension LoginPrologueViewController {

guard traitCollection.horizontalSizeClass == .regular &&
traitCollection.verticalSizeClass == .regular else {
buttonViewLeadingConstraint.constant = defaultButtonViewMargin
buttonViewTrailingConstraint.constant = defaultButtonViewMargin
buttonViewLeadingConstraint?.constant = defaultButtonViewMargin
buttonViewTrailingConstraint?.constant = defaultButtonViewMargin
return
}

Expand All @@ -555,8 +555,8 @@ private extension LoginPrologueViewController {

let margin = viewWidth * marginMultiplier

buttonViewLeadingConstraint.constant = margin
buttonViewTrailingConstraint.constant = margin
buttonViewLeadingConstraint?.constant = margin
buttonViewTrailingConstraint?.constant = margin
}

private enum ButtonViewMarginMultipliers {
Expand Down