How to create a floating action button in SwiftUI

Article directory Preface Create a floating action button The floating button appears at the front of the screen The floating button is located in the lower right corner of the screen Make the floating button appear circular add shadow Summarize Foreword Floating Action Button (FAB) is a UI element used in Android and Material Design. […]

[SwiftUI module] 0060, SwiftUI builds an Instagram-like App based on Firebase Part 2/7 – Building TabBar

SwiftUI module series – 60 articles updated SwiftUI Projects – 5 projects updated Previous Demo source code downloads Technology: SwiftUI, SwiftUI4.0, Instagram, Firebase Operating environment: SwiftUI4.0 + Xcode14 + MacOS12.6 + iPhone Simulator iPhone 14 Pro Max SwiftUI builds an Instagram-like App based on Firebase Part 2/7 – Building TabBar Overview detailed 1. Operation effect […]

IOS-Swiftui background call ring vibration

IOS background ringing, implementation solution through UNNotificationServiceExtension Xcode creates UNNotificationServiceExtension target Process the specified notification content through the didReceive method of NotificationService Use UserDefaults(suiteName: self.groupName) for shared data transfer Create UNNotificationServiceExtension target Click Xcode-File-New-Target and the following options will pop up for filtering selections Here we choose Notification Service Extension Click Finish here to complete […]

A SwiftUI-Based Calculator for iOS

The Link Your Class ?https://bbs.csdn.net/forums/ssynkqtd-04? The Link of Requirement of This Assignment ?https://bbs.csdn.net/topics/617332156? The Aim of This Assignment Create a calculator with a visual interface Link to the finished project code https://github.com/Aer123r/Calculator-for-IOS MU STU ID and FZU STU ID Catalog I. PSP Form II. Introduction Link to this project code III. Why Choose SwiftUI What […]

SwiftUI 4.0: Two ways to implement subview navigation function

0. Overview Starting from SwiftUI 4.0, the awakened Apple resolutely abandoned the “ineffective” NavigationView and replaced it with the new NavigationStack view. It is true that NavigationStack has a lot of improvements over NavigationView in terms of advancedness. If you want to introduce it in a single article, it will be like a treasure trove. […]

An in-depth explanation of the application of the new Observation framework in Swift 5.9 and SwiftUI 5.0

0. Overview Swift 5.9 brings us a new macro (Macro) mechanism with a bang, and also brings Qianxiaolingyun’s Observation framework. The Observation framework can enhance use in common scenarios, and can also be paired with SwiftUI 5.0 to gain greater power from the combination of two swords. In this blog post, you will learn the […]

The role and usage of property wrappers such as @State, @StateObject, @Binding, @ObservedObject, @Environment, and @EnvironmentObject in SwiftUI

First use a diagram to overall explain the role and scope of use of each status: SwiftUI provides 17 property wrappers for our application, each of which provides different functionality. Knowing which one to use and when is crucial to getting it right, so in this article, I’ll introduce you to each of them and […]