LAST CHANCE: Save 50% on all my Swift books and bundles! >>

15 entries from the Swift Knowledge Base you should try today

Learn something new with these quick Swift code samples.

Paul Hudson       @twostraws

A couple of years ago I built the Swift Knowledge Base as a way of condensing quick Swift tips, techniques, and solutions into one place, while also ensuring all answers were kept up to date as Swift evolved.

Today the knowledge base includes over 300 entries on topics such as UIKit, SpriteKit, Xcode, and more, but if you haven’t used it before you might find it a little overwhelming.

So, I wanted to pick out a few of my favorite articles to get you started. These aren’t necessarily the longest or most action-packed articles, but instead are things that I think more developers should be aware of or might want to try:

  1. How to ask users to review your app using SKStoreReviewController
  2. How to change your app icon dynamically with setAlternateIconName()
  3. How to generate haptic feedback with UIFeedbackGenerator
  4. How to animate views using UIViewPropertyAnimator
  5. How to convert units using Unit and Measurement
  6. How to detect low power mode is enabled
  7. How to insert images into an attributed string with NSTextAttachment
  8. How to create keyframe animations using CAKeyframeAnimation
  9. How to make empty table views look more attractive using DZNEmptyDataSet
  10. How to render a PDF to an image
  11. How to highlight text to speech words being read using AVSpeechSynthesizer
  12. How to create a parallax effect in UIKit
  13. How to scan a QR code
  14. How to measure touch strength using 3D Touch
  15. How to get a Cover Flow effect on iOS
Hacking with Swift is sponsored by Essential Developer.

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until July 28th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Buy Pro Swift Buy Pro SwiftUI Buy Swift Design Patterns Buy Testing Swift Buy Hacking with iOS Buy Swift Coding Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Advanced iOS Volume Three Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with macOS Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Beyond Code

Was this page useful? Let us know!

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.