• Coming Soon on App Store
  • Home
  • Contents
    • Articles
    • Videos
  • Channels

Nav Menu

  • Home
  • Articles
  • Videos
  • Channels

Copyright By SoftSky App LTD - 2025

  • Contact Us
  • Terms of Use
  • Privacy Policy

Hi there! My name is Majid. I'm Swift developer 👨🏻‍💻SwiftUI addicted 🚀 Creator of CardioBot, NapBot, FastBot and SugarBot.

RSShttps://swiftwithmajid.com/feed.xml
  • intermediate
  • By Swift With Majid
  • Oct 8

Building AI features using Foundation Models. Streaming.

How to stream partial outputs from Apple’s Foundation Models in Swift. Use LanguageModelSession.streamResponse to get a ResponseStream (AsyncSequence) of a Generable type, update UI as fields arrive, then collect() for the final result. Note: property order drives emission.

  • intermediate
  • By Swift With Majid
  • Sep 16

Feature flags in Swift

Implement feature flags per build config (Debug, TestFlight, App Store) using compiler conditions (#if APPSTORE/TESTFLIGHT) and a Distribution enum. A FeatureFlags struct drives toggles and is provided via SwiftUI Environment. Remove flags when done; consider remote config for rollouts.

  • intermediate
  • By Swift With Majid
  • Aug 26

Building AI features using Foundation Models. Structured Content.

Tutorial on generating structured content using iOS Foundation Models framework. Shows how to use @Generable and @Guide macros to create strongly-typed Swift models that AI can populate. Demonstrates building a recipe generator that takes ingredients and returns structured Recipe objects with nutritional data. Key APIs: LanguageModelSession.respond(generating:), @Generable macro for conforming types, @Guide macro for field descriptions. Makes AI output predictable and developer-friendly by transforming raw text into typed Swift structs.

  • intermediate
  • By Swift With Majid
  • Aug 19

Building AI features using Foundation Models

Introduces Apple's Foundation Models framework for integrating Apple Intelligence into iOS apps. Covers SystemLanguageModel availability checking, LanguageModelSession creation with custom instructions, and response tuning via GenerationOptions. Shows building a healthy lifestyle coach feature with temperature control (0-1 for creativity) and sampling modes (greedy vs random with seeds). Key APIs include isAvailable property, respond() function, and structured prompt engineering for consistent AI-generated recommendations.

  • intermediate
  • By Swift With Majid
  • Jul 30

Streaming changes with Observations

Introduces Observations, a new Observation framework type that turns Observable state into AsyncSequence. It fixes withObservationTracking’s single-fire/manual recursion and works with for‑await. Observes touched properties, batches transactional updates, and enables key‑path streams—bridging Combine‑style updates to Swift Concurrency.

  • intermediate
  • By Swift With Majid
  • Jul 23

Glassifying custom SwiftUI views. Groups

Using glassEffect on each view isn’t enough—glass should interact. Wrap related views in GlassEffectContainer so effects reflect each other and render more efficiently. Control morphing with the spacing parameter, or merge distant shapes via glassEffectUnion (same effect/shape/id).

  • beginner
  • By Swift With Majid
  • Jul 16

Glassifying custom SwiftUI views

Guide to SwiftUI’s glassEffect for custom views in Liquid Glass: apply the modifier, pick Glass styles (.regular, .clear, .identity), toggle with .identity, tint colors, use .interactive for stronger background response and gesture handling, customize shape. Effect adapts to content behind.

  • beginner
  • By Swift With Majid
  • Jul 8

Introducing Animatable macro in SwiftUI

Introduces SwiftUI’s @Animatable macro to animate view/shape stored properties without manual Animatable conformance. Use VectorArithmetic types (e.g., Int → Float), drive with .animation(value:), exclude fields via @AnimatableIgnored. Existing conformance is unchanged.

  • intermediate
  • By Swift With Majid
  • Jul 1

Glassifying toolbars in SwiftUI

Explains adopting Liquid Glass toolbars in SwiftUI. Toolbars gain glassy look; use symbol+text buttons. For pre‑Liquid Glass, add a custom LabelStyle with availability checks. Use ToolbarItemPlacement, optional tint/badge, and group with ToolbarItemGroup/ToolbarSpacer.

  • intermediate
  • By Swift With Majid
  • Jun 24

Glassifying tabs in SwiftUI

Adopt WWDC25’s Liquid Glass tabs via SwiftUI’s new Tab API: use TabView + Tab items, bind selection with @SceneStorage, mark .search role, auto-switch to sidebar with .tabViewStyle(.sidebarAdaptable), add .tabViewBottomAccessory, and minimize using .tabBarMinimizeBehavior.

  • beginner
  • By Swift With Majid
  • Jun 10

What is new in SwiftUI after WWDC25

SwiftUI after WWDC25: Liquid Glass design applies when building with Xcode 26. New TabView APIs (e.g., Tab with role .search), glassy toolbars with ToolbarSpacer, GlassButtonStyle and glassEffect. TextEditor gains attributed text, new WebView, macOS List performance boosts, and an Instruments profiling template.

  • intermediate
  • By Swift With Majid
  • May 27

Microapps architecture in Swift. Scaling.

Explores scaling microapps architecture in Swift from single-package to package-per-feature approaches. For small apps, single packages with ~20 modules work well, but large apps with 100+ modules face issues with Package.swift complexity and Xcode performance. Solution: package-per-feature where each feature lives in separate packages with internal modules for layers (domain, UI). Enables selective module dependencies and better separation of concerns while maintaining modularity and continuous delivery at scale.