On November 21st 2020, Apple announced updates to Apple’s SF Symbols Mac app:
SF Symbols 2.1 is out. Over 40 new symbols, improved symbol localization, design refinements, and various software fixes.
Go get it! It is free.
iOS 14 brings live a framework called “Screen Recognition”, a computer vision system that is able to recognize buttons, labels, icons, and other UI elements, as well as elements inside images like dogs, cats, facial expressions, etc., that enable blind people to operate applications in a easier way.
Enrollment is now open for the new App Store Small Business Program, designed to accelerate innovation and help propel your small business forward. Featuring a reduced commission rate of 15% on paid apps and in-app purchases, this program helps you invest more resources into your business so you can continue building great apps. The vast majority of developers on the App Store who sell digital goods and services are eligible — simply complete a short enrollment form.
This is a trick if you want to combine Text elements with different styles, like cololors, fonts, etc.
Just use the + operator.
1 2 3 4 5 6 7 8 9 10 11 | struct ContentView: View { var body: some View { Text("Color Red") .foregroundColor(.red) .font(.title) + Text("Color Blue") .foregroundColor(.blue) .font(.largeTitle) } } |
Result: two Text elements on the same line, each one with a different style
All you have to do to receive notifications on SwiftUI is to add the following modifier to your interface elements:
1 2 3 | .onReceive(NotificationCenter.default.publisher(for: .yourNotificationName)) { notification in let object = notification.object } |
1 2 | let object = ... // this is the object you want to send NotificationCenter.default.post(name: . yourNotificationName, object: object) |
Here you have more than 100 amazing Swift Tips.
Code samples, tips and tricks that show interesting Swift techniques and language features.
Thanks for everybody supporting this newsletter. Our number of visitors are skyrocketing. We have a growth of 450%, in terms of visited pages, since the last newsletter issue. So, thanks again for your support
All you need to know if you want to sponsorship this newsletter, in the following link.