RSSAmplifier

Blog

Smash Swift

Let's Discover iOS World Together

smashswift.comRSS feed ↗10 posts

Latest posts

How To Translate Single View In SwiftUI

When you localize your app then the whole mechanism is done for you by the framework. However, if you want[...] The post How To Translate Single View In SwiftUI appeared first on Smash Swift .

How To Translate Your Swift Package Library

If you follow official documentation to translate your library you might end up without a way to localize your library.[...] The post How To Translate Your Swift Package Library appeared first on Smash Swift .

How To Change Picker Text Color In SwiftUI

Sometimes you might need to create a default Picker in SwiftUI but you need to adjust the style a little[...] The post How To Change Picker Text Color In SwiftUI appeared first on Smash Swift .

How To Edit Navigation Title In SwiftUI

By default the navigation title in the navigation view can’t be edited. You can have this code to setup title:[...] The post How To Edit Navigation Title In SwiftUI appeared first on Smash Swift .

How To Iterate Array Of Objects To Create Views In SwiftUI

In SwiftUI we can’t easily iterate via an array of objects inside the view as it was in UIKit, however,[...] The post How To Iterate Array Of Objects To Create Views In SwiftUI appeared first on Smash Swift .

How To Create Decimal From Double

If you encounter a problem with double’s precision you might think about using Decimal. However sometimes, you might find that[...] The post How To Create Decimal From Double appeared first on Smash Swift .

How To Change Size Of Sheet In SwiftUI

In 2022 Apple again introduced new changes in SwiftUI. Previously, when we showed a sheet we had the option to[...] The post How To Change Size Of Sheet In SwiftUI appeared first on Smash Swift .

How To Change URLSession Cache Size

When you start using some networking in your app you might think about caching requests to make your app faster.[...] The post How To Change URLSession Cache Size appeared first on Smash Swift .

How To Clear URLSession Cache

There is a high chance that your app uses some API requests. Even if you use some external library, beneath[...] The post How To Clear URLSession Cache appeared first on Smash Swift .

How To Add Gradient To Text In SwiftUI

Since iOS 15, we can set gradient as a Text color. To do that, we can use foregroundStyle modifier. Text(“Smash[...] The post How To Add Gradient To Text In SwiftUI appeared first on Smash Swift .