/PunchZoom-ios-practice

To practice Puch and Zoom featuure with various gestures

Primary LanguageSwift

πŸ”Ž 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

image

πŸ”· 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/