π PunchZoom-ios-practice
π κΈ°λ₯ μμΈ
-
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
π Check Point !
π· UI Structure
π· Model
// 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
}
}
1.Double Tap Gesture
π2.Drag Gesture
π3.Long Press Gesture
π4.Control Interface
π5.Magnification Gesture
π6.User Interface
π7.Page Thumbnails
ππΆ π· π π π
π Reference
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/