myBeat - stream music and videos without pop-up ads.
Background playback when screen is off, Google Cast support, and personalized listening experience.
I built it natively for iOS using SwiftUI + TCA, with support from ChatGPT. 💪
https://t.co/cfP0ifhRyj
Since AI came into my life, I’ve been coding faster, building apps quicker, and shipping products non-stop. It’s a whole chill vibe!
Only problem… still no money 😅
🚀 Functional Programming in Swift – Why You Should Care by a solo dev coding Swift at midnight ☕️💻
Functional programming isn’t just for Haskell nerds – Swift supports a ton of FP concepts that make your code cleaner, safer, and often more fun.
Here’s what makes FP in Swift worth trying:
✅ Pure Functions
Functions that don't mess with external state = easier to test & reason about.
func double(_ x: Int) -> Int {
return x * 2
}
✅ Immutability
Using let > var. Protect your state like it's your last coffee. ☕️
let scores = [1, 2, 3]
let doubled = https://t.co/OndrXPMMWr { $0 * 2 }
✅ First-Class Functions
Functions are values. You can pass them, return them, compose them.
func add(_ x: Int) -> (Int) -> Int {
return { $0 + x }
}
✅ Higher-Order Functions
Using .map, .filter, .reduce makes you feel like a wizard.
let total = [1, 2, 3].reduce(0, +) // 6
Should you go fully functional? Not necessarily.
But learning a few FP tricks will make your Swift code ✨ better ✨.
💬 What’s your favorite functional pattern in Swift?
I think we all prefer .map over for loops anyway 😄