Tag

Swift

1 views collected around this technical thread.

Ctrip Technology
Ctrip Technology
May 22, 2025 · Mobile Development

An In‑Depth Overview of Skip: A High‑Performance Native Cross‑Platform Development Framework

This article introduces Skip, a new high‑performance native cross‑platform framework that converts Swift/SwiftUI code to Kotlin/Jetpack Compose, detailing its architecture, toolchain, usage steps, code examples, comparisons with other frameworks, project structure, internal modules, and practical considerations for mobile developers.

Jetpack ComposeKotlinMobile Development
0 likes · 11 min read
An In‑Depth Overview of Skip: A High‑Performance Native Cross‑Platform Development Framework
IT Services Circle
IT Services Circle
Apr 8, 2025 · Fundamentals

TIOBE April 2025 Index Shows Kotlin, Ruby, and Swift Falling While Flutter Gains Traction

The TIOBE April 2025 programming‑language ranking reveals that former top‑20 languages Kotlin, Ruby and Swift are slipping in popularity, while cross‑platform frameworks like Flutter rise, and legacy "dinosaur" languages such as Delphi, Fortran, Ada and COBOL quietly re‑enter the top‑20 list.

FlutterKotlinRuby
0 likes · 7 min read
TIOBE April 2025 Index Shows Kotlin, Ruby, and Swift Falling While Flutter Gains Traction
Sohu Tech Products
Sohu Tech Products
Dec 25, 2024 · Mobile Development

Masonry Layout Framework: Bundle Size Impact and Optimization Solutions

Masonry, a lightweight iOS layout framework, simplifies constraints with chainable syntax but its block‑based APIs can add several megabytes to an app’s bundle when heavily used; replacing those blocks with non‑block alternatives reduces the size increase to roughly one kilobyte, preserving performance.

Auto LayoutMasonryMobile Development
0 likes · 2 min read
Masonry Layout Framework: Bundle Size Impact and Optimization Solutions
Sohu Tech Products
Sohu Tech Products
Nov 27, 2024 · Mobile Development

Beginner's Guide to iOS Memory Analysis: Virtual Memory, Heap, Autoreleasepool, and Leaks

This beginner‑level guide explains iOS virtual‑memory and heap fundamentals, demonstrates how autorelease‑pool buildup and retain‑cycle leaks cause out‑of‑memory crashes, and shows step‑by‑step use of Xcode’s Memory Graph, Instruments Allocations, and leak detection tools, plus tips on weak versus unowned references.

AutoreleasePoolLeaksSwift
0 likes · 17 min read
Beginner's Guide to iOS Memory Analysis: Virtual Memory, Heap, Autoreleasepool, and Leaks
Sohu Tech Products
Sohu Tech Products
Nov 6, 2024 · Mobile Development

UIStackView Tutorial: A Comprehensive Guide to iOS Linear Layout

This tutorial explains UIStackView, Apple’s iOS 9 linear layout container that mirrors Flexbox concepts, covering axis, distribution, alignment, and spacing, showing how to add arranged subviews, hide them dynamically, adjust hugging and compression priorities, and noting its limitations such as lacking order, flex‑grow, and flex‑basis controls.

Auto LayoutLinear LayoutMobile Development
0 likes · 8 min read
UIStackView Tutorial: A Comprehensive Guide to iOS Linear Layout
Bilibili Tech
Bilibili Tech
Oct 22, 2024 · Mobile Development

Understanding Swift Macros in Swift 5.9 and Their Applications

Swift 5.9’s new macro system lets developers generate type‑safe code at compile time via external plug‑ins, using role‑based declarations such as @attached and @freestanding to create properties, extensions, or warnings, thereby reducing repetitive boiler‑plate and improving safety in large‑scale architectures like MVVP modules and exposure frameworks.

Compiler PluginMacroSwift
0 likes · 20 min read
Understanding Swift Macros in Swift 5.9 and Their Applications
Airbnb Technology Team
Airbnb Technology Team
Sep 9, 2024 · Mobile Development

Implementing Page Performance Score on iOS: PPSStateMachine, Metrics, and Instrumentation

Airbnb’s iOS Page Performance Score implementation introduces a PPSStateMachine that ties a UIViewController’s lifecycle to metric collection—tracking first layout, initial load, scroll thread hangs, additional and rich content load times—using nanosecond timestamps, state‑machine protocols, and view‑responder discovery to emit standardized performance logs.

InstrumentationMetricsMobile Development
0 likes · 9 min read
Implementing Page Performance Score on iOS: PPSStateMachine, Metrics, and Instrumentation
Architecture Development Notes
Architecture Development Notes
Jul 16, 2024 · Mobile Development

Kickstart Your Swift Journey: From Playground Basics to App Store

This guide walks you through Swift fundamentals—from setting up a Playground and writing your first print statement to mastering variables, control flow, functions, collections, object‑oriented concepts, and building SwiftUI apps—providing the essential knowledge to start developing iOS and macOS applications.

Mobile DevelopmentSwiftSwiftUI
0 likes · 6 min read
Kickstart Your Swift Journey: From Playground Basics to App Store
Sohu Tech Products
Sohu Tech Products
Jul 10, 2024 · Mobile Development

SwiftUI ScrollPosition: Advanced Scroll Control in iOS 18

The article introduces SwiftUI’s new ScrollPosition type in iOS 18, explains how to track and set scroll locations using offsets, edges, and view identifiers, demonstrates animated programmatic scrolling, reading position properties, detecting user‑driven scrolling, and provides a complete runnable example for fluid UI design.

ScrollPositionSwiftSwiftUI
0 likes · 6 min read
SwiftUI ScrollPosition: Advanced Scroll Control in iOS 18
Sohu Tech Products
Sohu Tech Products
Jan 3, 2024 · Mobile Development

UICollectionViewCompositionalLayout Complete Guide

This guide explains how iOS 13’s UICollectionViewCompositionalLayout, together with Diffable Data Source, lets developers define items, groups, and sections using flexible size specifications, nested groups, orthogonal scrolling, custom and supplementary views, and background decorations to build complex, dynamic collection view layouts.

Compositional LayoutDiffable Data SourceMobile Development
0 likes · 26 min read
UICollectionViewCompositionalLayout Complete Guide
Sohu Tech Products
Sohu Tech Products
Dec 13, 2023 · Mobile Development

Swift–Kotlin Interoperability in Compose for iOS

This article demonstrates how to bridge Swift and Kotlin in a Compose‑Multiplatform iOS app by using Swift view modifiers to detect orientation changes and call Kotlin functions, while exposing Kotlin callbacks that Swift registers to change device orientation, enabling seamless two‑way platform‑specific logic integration.

KotlinSwiftcompose multiplatform
0 likes · 9 min read
Swift–Kotlin Interoperability in Compose for iOS
Baidu Geek Talk
Baidu Geek Talk
Dec 4, 2023 · Mobile Development

Compiler Optimization

The article details Baidu APP’s comprehensive compiler‑optimization strategy, including GCC‑Oz size reduction, Swift‑Osize with whole‑module optimization, link‑time optimization, symbol stripping, dead‑code removal, asset catalog compression, minimizing C++ virtual functions, slimming third‑party SDKs, dropping unused ARM architectures, Xcode 14 binary‑size tweaks, and eliminating built‑in Swift libraries by raising the minimum iOS version.

LTOPerformance TuningSwift
0 likes · 16 min read
Compiler Optimization
DataFunSummit
DataFunSummit
Nov 13, 2023 · Artificial Intelligence

SWIFT: A Scalable Light‑Weight Training and Inference Framework for Efficient Model Fine‑Tuning

SWIFT is an open‑source, PyTorch‑based framework that integrates multiple efficient fine‑tuning methods such as LoRA, QLoRA, Adapter, and the proprietary ResTuning, enabling developers to fine‑tune large language and multimodal models on consumer‑grade GPUs with significantly reduced memory and compute requirements.

Fine-tuningLoRAModelScope
0 likes · 13 min read
SWIFT: A Scalable Light‑Weight Training and Inference Framework for Efficient Model Fine‑Tuning
Architects Research Society
Architects Research Society
Sep 28, 2023 · Mobile Development

Top Mobile App Development Trends for 2023 and Beyond

2023’s mobile app development landscape is shaped by emerging trends such as the metaverse, blockchain integration, advanced AR, AI-driven voice and chatbots, and innovations in frameworks like Swift, Jetpack Compose, Kotlin Multiplatform, React Native, and Flutter, all influencing the future of iOS and Android solutions.

ARFlutterMetaverse
0 likes · 16 min read
Top Mobile App Development Trends for 2023 and Beyond
Sohu Tech Products
Sohu Tech Products
Sep 13, 2023 · Mobile Development

iOS Interaction Blocking: Intercepting User Events at UIApplication Level

To globally block all user interactions—including touches, motion, remote control, and press events—developers can subclass UIApplication and override its sendEvent: method, providing a disableUserInteraction: API with timed re‑enabling and a counter to safely manage concurrent disable requests.

Event HandlingMobile DevelopmentSwift
0 likes · 8 min read
iOS Interaction Blocking: Intercepting User Events at UIApplication Level
Sohu Tech Products
Sohu Tech Products
Sep 6, 2023 · Mobile Development

Building an iOS SMS Spam Filter App with CoreML

This tutorial walks through creating a custom iOS SMS spam filter app, covering extraction of personal SMS data from an iPhone backup, training a CoreML text‑classification model with CreateML, implementing a Message Filter Extension in Xcode, and exploring advanced update strategies.

App ExtensionCoreMLSMS filtering
0 likes · 12 min read
Building an iOS SMS Spam Filter App with CoreML
Qunar Tech Salon
Qunar Tech Salon
Jul 27, 2023 · Mobile Development

Implementing iOS Live Activities for Real‑Time Travel Information in Qunar

This article explains how Qunar integrated iOS 16 Live Activities to display real‑time travel updates on the lock screen and Dynamic Island, covering background, feature comparison, requirements, system design, Swift implementation, push‑based updates, debugging tips, and lessons learned.

ActivityKitLive ActivitiesMobile Development
0 likes · 17 min read
Implementing iOS Live Activities for Real‑Time Travel Information in Qunar
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jul 6, 2023 · Mobile Development

A Declarative Animation Framework for iOS: Design and Implementation

The article introduces a lightweight, protocol‑oriented iOS animation framework that uses type erasure and declarative animators to replace nested callback code, providing simple factory methods, serial and parallel execution support, and clearer, more maintainable animation sequences.

DeclarativeSwiftType Erasure
0 likes · 11 min read
A Declarative Animation Framework for iOS: Design and Implementation
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jun 16, 2023 · Fundamentals

The Semantics of nil in Swift

The article explains that Swift’s nil differs from Objective‑C’s null pointer by representing ‘no value’ for any type through optionals, details how various optionals (Bool?, String?, class?, enum?) are encoded in memory, shows the extra byte cost for Int?, and advises minimizing optional Int fields in structs, using 0 when appropriate.

Memory OptimizationSwiftValue Types
0 likes · 6 min read
The Semantics of nil in Swift
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jun 5, 2023 · Fundamentals

Understanding Swift SIL and Method Dispatch Mechanisms

Swift inserts the high‑level SIL intermediate representation between source code and LLVM, exposing type declarations, method blocks, and virtual tables, while supporting three dispatch strategies—direct for value types and final methods, VTable for regular class methods, and Objective‑C message dispatch for @objc dynamic methods—crucial for debugging mixed Swift/Objective‑C and protocol‑extension behavior.

CompilerLLVMMethod Dispatch
0 likes · 20 min read
Understanding Swift SIL and Method Dispatch Mechanisms