It’s time to start Neumorphism UI in Swift
This year explored some potential new trends in UI design, with one particular trend gaining a lot of attention on this year. This “New Neumorphism” has been set a trend utilizing a new and minimal look with a soft, extruded plastic appearance that gives the impression that the interface has been vacuum formed.
In the years of the modern user interfaces, we used to have Neumorphism designs; it was a design mimicking its use case. For example, buttons were glossy, and the trashcan icon resembled deleting, and so on.
Neumorphism outer shadow in swift
func setupActionView() {
subtitleView.type = .normal
actionLabel = UILabel()
actionLabel.translatesAutoresizingMaskIntoConstraints = false
actionLabel.textColor = .darkText
actionLabel.font = UIFont.init(name: "AvenirNext-Regular", size: 16) actionLabel.text = "Neumorphism" actionView.setContentView(actionLabel)
actionLabel.centerXAnchor.constraint(equalTo: actionView.centerXAnchor).isActive = true
actionLabel.centerYAnchor.constraint(equalTo: actionView.centerYAnchor).isActive = true
}
Neumorphism inner shadow in swift
func setupActionView() {
subtitleView.type = .normal
subtitleView.isSelected = truelet label = UILabel()
label.translatesAutoresizingMaskIntoConstraints = false
label.font = UIFont.init(name: "AvenirNext-Bold", size: 13)label.text = "Neumorphism"label.textColor = .darkText
subtitleView.setContentView(label)
label.centerXAnchor.constraint(equalTo: subtitleView.centerXAnchor).isActive = true
label.centerYAnchor.constraint(equalTo: subtitleView.centerYAnchor).isActive = true
}
Further Reading
Get notified about the details of New innovation in software industry, as well as other important development update & expansion of IT industry check our previous & Upcoming article.