-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
siwe fallback #77
Merged
Merged
siwe fallback #77
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
12cd8cb
fix error display on method unsupported
llbartekll 6dfe705
savepoint
llbartekll 43da343
savepoint
llbartekll be72b87
savepoint
llbartekll a6e7b85
add siwe publishers
llbartekll e0d14d9
adds alerts on authentication
llbartekll 9d8b464
add disable authenticated sessions
llbartekll 5efac2f
upgrade sign version
llbartekll f38a746
allow disableAuthenticatedSessions in all configurations
llbartekll 143594f
remove authenticatedSessionsDisabled
llbartekll 25abd7e
disable 1ca
llbartekll 93f0ff3
disable ui tests
llbartekll e0c0091
disable tests
llbartekll 9756dd2
disable tests
llbartekll 591f0f2
update dependency version
llbartekll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import Foundation | ||
import SwiftMessages | ||
import UIKit | ||
|
||
struct AlertPresenter { | ||
enum MessageType { | ||
case warning | ||
case error | ||
case info | ||
case success | ||
} | ||
|
||
static func present(message: String, type: AlertPresenter.MessageType) { | ||
DispatchQueue.main.async { | ||
let view = MessageView.viewFromNib(layout: .cardView) | ||
switch type { | ||
case .warning: | ||
view.configureTheme(.warning, iconStyle: .subtle) | ||
case .error: | ||
view.configureTheme(.error, iconStyle: .subtle) | ||
case .info: | ||
view.configureTheme(.info, iconStyle: .subtle) | ||
case .success: | ||
view.configureTheme(.success, iconStyle: .subtle) | ||
} | ||
view.button?.isHidden = true | ||
view.layoutMarginAdditions = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20) | ||
view.configureContent(title: "", body: message) | ||
var config = SwiftMessages.Config() | ||
config.presentationStyle = .top | ||
config.duration = .seconds(seconds: 1.5) | ||
SwiftMessages.show(config: config, view: view) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SupernLucky