Road To WWDC 2021 Scholarship
Feb 7, 2021, 3:50 AM
As I shared with you last year how my application to Worldwide Developers Conference (WWDC) Scholarship was going, I’m going[...]
The post Road To WWDC 2021 Scholarship appeared first on Smash Swift.
How To Read Image Video From Firebase
Jan 31, 2021, 1:34 PM
In the post with the video player, I showed an example with a video uploaded on my hosting. However, some[...]
The post How To Read Image Video From Firebase appeared first on Smash Swift.
How To Change Build Configuration In Xcode
Jan 24, 2021, 6:45 AM
As you know, your build is different when you build an app directly to your device or simulator and it’s[...]
The post How To Change Build Configuration In Xcode appeared first on Smash Swift.
How To Create Custom Compilation Check
Jan 17, 2021, 2:14 PM
Sometimes you need to check the current platform like iOS or tvOS, another time you want to add some logs[...]
The post How To Create Custom Compilation Check appeared first on Smash Swift.
Summary Of 2020
Dec 31, 2020, 8:15 AM
Let’s start this summary from a joke: -What can you tell positively about 2020?-It’s about to finish.Ba Dum Tss! This[...]
The post Summary Of 2020 appeared first on Smash Swift.
How To Get Info About Current Thread In Swift
Dec 20, 2020, 2:52 PM
It’s sometimes useful when you need to know for debugging purposes which current thread is in usage. If you need[...]
The post How To Get Info About Current Thread In Swift appeared first on Smash Swift.
Notifications are not allowed for this application from Notification Service Extension
Dec 13, 2020, 3:00 AM
Notification Center very seldom returns some error from the completion handler. However, there is one error I encountered and it[...]
The post Notifications are not allowed for this application from Notification Service Extension appeared...
Strange Bug In Xcode 12?
Dec 6, 2020, 3:44 PM
Last weekend, I’ve updated Xcode to 12.2 and I’ve encountered a strange bug. I was receiving the error “EXC_BAD_ACCESS (code=257,[...]
The post Strange Bug In Xcode 12? appeared first on Smash Swift.
How To Set Border In SwiftUI
Nov 29, 2020, 8:25 AM
Border for the view is something that can create a beautiful layout. In SwiftUI, there is a view modifier called[...]
The post How To Set Border In SwiftUI appeared first on Smash Swift.
How To Spread Views Equally In SwiftUI
Nov 22, 2020, 11:24 AM
By default, views inside Stacks in SwiftUI are positioned in the center. One of the easy methods to spread them[...]
The post How To Spread Views Equally In SwiftUI appeared first on Smash Swift.
How To Add Vertical Padding to Collection View
Nov 11, 2020, 5:56 PM
In Swift we have UICollectionView, in Android there is RecyclerView. However, on Android, there is an option clipToPadding that adds[...]
The post How To Add Vertical Padding to Collection View appeared first on Smash Swift.
How To Detect Touch Down Event In SwiftUI
Nov 1, 2020, 12:46 PM
SwiftUI isn’t perfect yet and it doesn’t have all the possibilities like UIKit. One of them is detecting when the[...]
The post How To Detect Touch Down Event In SwiftUI appeared first on Smash Swift.
How To Change Resize Image In SwiftUI
Oct 25, 2020, 4:02 PM
In SwiftUI Image view takes minimal space needed to display an image. When you create an Image using system icons[...]
The post How To Change Resize Image In SwiftUI appeared first on Smash Swift.
Show Another Screen From Different Places
Oct 18, 2020, 3:36 PM
SwiftUI changed how navigation is performed and instead of creating a controller and presenting it you just use NavigationLink to[...]
The post Show Another Screen From Different Places appeared first on Smash Swift.
What Have I Learned Creating 30 Posts In 30 Days
Oct 11, 2020, 8:19 AM
In May I had an idea to create 30 posts about SwiftUI in June, one post for each day. It[...]
The post What Have I Learned Creating 30 Posts In 30 Days appeared first on Smash Swift.
How To Align View In SwiftUI
Sep 30, 2020, 2:44 PM
SwiftUI has changed completely how we build views. There are a few ways to align them related to parents, one[...]
The post How To Align View In SwiftUI appeared first on Smash Swift.
New Video Player In SwiftUI
Sep 29, 2020, 8:29 AM
Since iOS 14 and the second version of SwiftUI, there is a new ViewPlayer. To use it, you need to[...]
The post New Video Player In SwiftUI appeared first on Smash Swift.
How To Create Progress View In SwiftUI
Sep 28, 2020, 2:46 AM
The second version of SwiftUI and iOS14 introduced Progress View. The basic usage it’s just ProgressView without any parameter. ProgressView()[...]
The post How To Create Progress View In SwiftUI appeared first on Smash Swift.
How To Change Suite Name For UserDefaults In SwiftUI
Sep 27, 2020, 11:16 AM
As there is a new property wrapper in SwiftUI for UserDefaults called AppStorage. There is a need to be able[...]
The post How To Change Suite Name For UserDefaults In SwiftUI appeared first on Smash Swift.
UserDefaults In SwiftUI
Sep 26, 2020, 12:16 PM
The second version of SwiftUI and iOS14 introduced a new way to edit UserDefaults. It’s a property wrapper called AppStorage.[...]
The post UserDefaults In SwiftUI appeared first on Smash Swift.
How To Create Color Picker In SwiftUI
Sep 25, 2020, 2:16 AM
The second version of SwiftUI and iOS14 introduced a new extremely helpful Color Picker. First, you need State property to[...]
The post How To Create Color Picker In SwiftUI appeared first on Smash Swift.
How To Ignore Tap In SwiftUI
Sep 24, 2020, 1:33 PM
Tapping is a basic thing when you want to give users the option to click on something. Let’s say you[...]
The post How To Ignore Tap In SwiftUI appeared first on Smash Swift.
New Label View In SwiftUI
Sep 23, 2020, 2:22 PM
Creating Image and Text is a common scenario that’s why since the second version of SwiftUI we have a new[...]
The post New Label View In SwiftUI appeared first on Smash Swift.
How To Change Keyboard Type In SwiftUI
Sep 22, 2020, 8:42 AM
SwiftUI has a new TextEditor and old TextField for user inputs. Be default they have a standard keyboard. However, if[...]
The post How To Change Keyboard Type In SwiftUI appeared first on Smash Swift.
New Text Editor In SwiftUI
Sep 21, 2020, 3:37 PM
Since iOS 14 there is a new Text Editor implemented in SwiftUI. Previously we were using TextField and it looked[...]
The post New Text Editor In SwiftUI appeared first on Smash Swift.
How To Create Wheel Picker In SwiftUI
Sep 20, 2020, 7:32 AM
When you want to give the user option to select some value from the available options then one of the[...]
The post How To Create Wheel Picker In SwiftUI appeared first on Smash Swift.
How To Hide Label In Date Picker In SwiftUI
Sep 19, 2020, 9:15 AM
Date Picker is a useful thing because it saves us a lot of time because we don’t have to create[...]
The post How To Hide Label In Date Picker In SwiftUI appeared first on Smash Swift.
How To Show Context Menu In SwiftUI
Sep 18, 2020, 2:57 PM
Context Menu allows you to create extra features specific to some views like images in a gallery or messages. With[...]
The post How To Show Context Menu In SwiftUI appeared first on Smash Swift.
How To Show Action Sheet In SwiftUI
Sep 17, 2020, 5:46 PM
Action Sheet in SwiftUI is a great tool to show user show few possible actions. This example will have two[...]
The post How To Show Action Sheet In SwiftUI appeared first on Smash Swift.
How To Show Alert In SwiftUI
Sep 16, 2020, 2:23 PM
Sometimes you need to inform or ask the user about something, instead of creating a new view you can show an[...]
The post How To Show Alert In SwiftUI appeared first on Smash Swift.
How To Change Tuple Fields Names
Sep 15, 2020, 9:53 AM
The tuple is an amazing thing in Swift that allows you to create some kind of new data structure that[...]
The post How To Change Tuple Fields Names appeared first on Smash Swift.
How To Scroll List To Specific Item In SwiftUI
Sep 14, 2020, 12:19 PM
The list is a basic view in SwiftUI and since the second version of SwiftUI, it’s easier to scroll to[...]
The post How To Scroll List To Specific Item In SwiftUI appeared first on Smash Swift.