Hi Team,
We are using the default lock UI for iOS and are facing minor UI issues the signup and login buttons on the bottom is cut off . We didnt find any options in the styling and customisation of lock UI for iOS. Please share any links to help us resolve the issue. Thanks.
Attached image for reference
![alt text][1]
![alt text][2]
@srinivas Which version of Lock.swift are you using? Could you share a snippet of code from your authentication request, so that we can try to replicate the issue?
Hi - Sorry for delayed reply . We are using version 2.0 . Code snippet as below let us know if anything else required.
Lock
.classic()
.withConnections({ (connection) in
connection.database(name: "Username-Password-Authentication", requiresUsername: false)
connection.social(name: "linkedin", style: .Linkedin)
})
.withOptions {
$0.scope = "openid"
// $0.closable = true // close button shown Login UI
$0.allow = .Login, .Signup, .ResetPassword]
$0.allowShowPassword = false // allow password visible on auth0 button action
if self.isSignUp {
$0.initialScreen = .signup
}
$0.privacyPolicyURL = URL(string: "")!
$0.termsOfServiceURL = URL(string: "")!
}
.withStyle {
$0.title = ""
$0.logo = LazyImage(name: "")
$0.primaryColor = BLUE_BACKGROUND_COLOR
$0.headerColor = .groupTableViewBackground
}
.onSignUp(callback: { (str, dict) in
print("Lock sign up”)
})
.onAuth { credentials in
guard let accessToken = credentials.accessToken else { return }
guard let idToken = credentials.idToken else { return }
}
.onCancel {
print("Lock login cancelled")
}
.onCancel(callback: {
print("Lock login cancelled")
})
.onError(callback: { (error) in
print("Lock Login Error: \(error)")
})
.present(from: self)
Hi - Sorry for delayed reply we are currently using version 2.0 . the code snippet as below . Lets us know if any more details required.
Lock
.classic()
.withConnections({ (connection) in
connection.database(name: "Username-Password-Authentication", requiresUsername: false)
connection.social(name: "linkedin", style: .Linkedin)
})
.withOptions {
$0.scope = "openid"
// $0.closable = true // close button shown Login UI
$0.allow = .Login, .Signup, .ResetPassword]
$0.allowShowPassword = false // allow password visible on auth0 button action
if self.isSignUp {
$0.initialScreen = .signup
}
$0.privacyPolicyURL = URL(string: "")!
$0.termsOfServiceURL = URL(string: "")!
}
.withStyle {
$0.title = ""
$0.logo = LazyImage(name: "")
$0.primaryColor = BLUE_BACKGROUND_COLOR
$0.headerColor = .groupTableViewBackground
}
.onSignUp(callback: { (str, dict) in
print("Lock sign up”)
})
.onAuth { credentials in
guard let accessToken = credentials.accessToken else { return }
guard let idToken = credentials.idToken else { return }
}
.onCancel {
print("Lock login cancelled")
}
.onCancel(callback: {
print("Lock login cancelled")
})
.onError(callback: { (error) in
print("Lock Login Error: \(error)")
})
.present(from: self)
Hey there!
Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.
Wanted to reach out to know if you still require further assistance?