Closed cederache closed 7 months ago
is there a specific use case where you need the config?
I was trying to replicate the AppleToastView behavior using the config like this :
switch toast.config.direction {
case .bottom:
bottomAnchor.constraint(equalTo: superview.layoutMarginsGuide.bottomAnchor, constant: 0).isActive = true
case .top:
topAnchor.constraint(equalTo: superview.layoutMarginsGuide.topAnchor, constant: 0).isActive = true
case .center:
centerYAnchor.constraint(equalTo: superview.layoutMarginsGuide.centerYAnchor, constant: 0).isActive = true
}
Allow get access to the toast config in custom Toast view