-
SwiftUI Gestures : long-press, double-tap, drag gesture and magnification
-
SwiftUI Materials : Apply blur effect plus vibrancy to a view that appears behind another view by adding a material with tha background
// PageModel.swift
import Foundation
// Swift Protocol : A protocol defines a blueprint of methods, properties, and
// other requirements that suit a particular task or piece of functionality
struct Page: Identifiable {
let id: Int // ID: Specifying the identified Item
let imageName: String
}
extension Page {
var thumbnailName: String {
// Concatenating Strings: String values can be added together (or concatenated)
// with the addition operator (+)
return "thumb-" + imageName
}
}
🔶 🔷 📌 🔑 👉
How to use gestures in SwiftUI - https://www.hackingwithswift.com/books/ios-swiftui/how-to-use-gestures-in-swiftui
Udemy SwiftUI Masterclass 2022 - https://www.udemy.com/course/swiftui-masterclass-course-ios-development-with-swift/