Looking for a quick tip to improve your Swift code? 🤨
Testing an optional String for both nullity and emptiness can feel a bit redundant!
Instead you can define an extension with a computed property `isNilOrEmpty`: it will make your code feel a bit less crowded 👌
Today's 90 second video discusses Apple's new pricing tiers for the App Store ranging from $0.29 to $10,000. You can also set a local storefront as the basis for all other pricing. ▶️ VIDEO - https://t.co/75KnvijvZI
Looking for a quick tip to improve your Swift code? 🤨
When a function needs to handle an unknown number of values, you can use a variadic argument instead of an array!
The call sites will become much cleaner while the implementation will mostly stay the same 👌
Are you curious about the future features of Swift 5.8? 🤨 Did you know we could already have a sneak peek 👀 Here’s the replay of a livestream where I had a look at a couple of them! https://t.co/NQ1o5kGkjw
If we need to permanently pin a view to the bottom of the screen in SwiftUI, we can place it inside safeAreaInset(edge: .bottom) modifier.
If we use this method with a text field, it will also automatically move to the top of the keyboard when focused.
Looking for a quick tip to improve your Swift code? 🤨
If you need to combine several `if` statements together, nesting them might not be the best choice!
Instead you can use the operator `,` to combine the conditions into a single `if` statement 👌
When building apps I often like to skip certain screens, speed up animations, etc. when developing. Before I was using global variables but recently found this fantastic video on configs in Xcode from @StewartLynch. https://t.co/aBAmTMgNTC #iosdev
TIL:"\.foo" is called a KeyPath in Swift and is useful for readable HOF syntax (e.g. map, filter) and prevents side effects. Great explanation from @v_pradeilles https://t.co/78EB8Kf7aQ
You’ve heard of the Coordinator pattern, but you’re not entirely sure how it works? 🤨
Don’t worry! I’ve got you covered! 😌
In just a few tweets we’ll go over everything you need to know to understand how this pattern works! 🧵
After installing a more aggressive config of SwiftLint, I was getting yelled at for trailing white spaces on empty lines. Checking the last checkbox "Including whitespace-only lines" fixed the issue. #iosdev#swiftlint