π¨βπ»
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // CardView.swift | |
| // AKPageView | |
| // | |
| // Created by Ashish Kakkad on 31/08/23. | |
| // | |
| import SwiftUI | |
| struct CardView: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // AKPageView.swift | |
| // AKPageView | |
| // | |
| // Created by Ashish Kakkad on 31/08/23. | |
| // | |
| import SwiftUI | |
| struct AKPageView: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MeshGradient( | |
| width: 3, | |
| height: 3, | |
| points: [ | |
| [0.0, 0.0], [0.5, 0.0], [1.0, 0.0], | |
| [0.0, 0.5], [0.5, 0.5], [1.0, 0.5], | |
| [0.0, 1.0], [0.5, 1.0], [1.0, 1.0] | |
| ], colors: [ | |
| .red, .red, .red, | |
| .black, .red, .black, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TimelineView(.animation) { timeline in | |
| let x = (sin(timeline.date.timeIntervalSince1970) + 1) / 2 | |
| MeshGradient( | |
| width: 3, | |
| height: 3, | |
| points: [ | |
| [0.0, 0.0], [0.5, 0.0], [1.0, 0.0], | |
| [0.0, 0.5], [Float(x), 0.5], [1.0, 0.5], | |
| [0.0, 1.0], [0.5, 1.0], [1.0, 1.0] | |
| ], colors: [ |
OlderNewer