https://github.com/jacobkosmart/punchzoom-ios-practice
To practice Puch and Zoom featuure with various gestures
https://github.com/jacobkosmart/punchzoom-ios-practice
drawer pinch-to-zoom resuable-component swiftui
Last synced: 8 months ago
JSON representation
To practice Puch and Zoom featuure with various gestures
- Host: GitHub
- URL: https://github.com/jacobkosmart/punchzoom-ios-practice
- Owner: jacobkosmart
- Created: 2022-01-10T06:45:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-11T01:55:30.000Z (over 3 years ago)
- Last Synced: 2024-12-28T03:27:49.273Z (9 months ago)
- Topics: drawer, pinch-to-zoom, resuable-component, swiftui
- Language: Swift
- Homepage:
- Size: 8.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π 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
```swift
// PageModel.swiftimport 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](https://github.com/jacobkosmart/PunchZoom-ios-practice/blob/main/MD/1.DoubleTab.md)
#### π [2.Drag Gesture](https://github.com/jacobkosmart/PunchZoom-ios-practice/blob/main/MD/2.DragGesture.md)
#### π [3.Long Press Gesture](https://github.com/jacobkosmart/PunchZoom-ios-practice/blob/main/MD/3.LongPressGesture.md)
#### π [4.Control Interface](https://github.com/jacobkosmart/PunchZoom-ios-practice/blob/main/MD/4.ControlInterface.md)
#### π [5.Magnification Gesture](https://github.com/jacobkosmart/PunchZoom-ios-practice/blob/main/MD/5.MagnificationGesture.md)
#### π [6.User Interface](https://github.com/jacobkosmart/PunchZoom-ios-practice/blob/main/MD/6.DrawerUI.md)
#### π [7.Page Thumbnails](https://github.com/jacobkosmart/PunchZoom-ios-practice/blob/main/MD/7.PageThumbnails.md)
---
πΆ π· π π π
## π Reference
How to use gestures in SwiftUI - [https://www.hackingwithswift.com/books/ios-swiftui/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/](https://www.udemy.com/course/swiftui-masterclass-course-ios-development-with-swift/)