This file contains 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
import SwiftUI | |
// MARK: 2. Create view style protocol | |
protocol CardStyle { | |
associatedtype Body: View | |
typealias Configuration = CardStyleConfiguration | |
func makeBody(configuration: Self.Configuration) -> Self.Body | |
} |
This file contains 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
import Combine | |
import Foundation | |
import SwiftUI | |
struct CircularLoaderView: View { | |
@State private var circleProgress: CGFloat = 0.0 | |
@State private var timerCancellable: Cancellable? = nil | |
@State private var isComplete = false | |
let gradient = AngularGradient( |
This file contains 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
// | |
// ContentView.swift | |
// Exploration | |
// | |
// | |
import SwiftUI | |
struct ContentView: View { | |
var body: some View { |
This file contains 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
class ActionViewController: UIViewController { | |
override func viewWillAppear(_ animated: Bool) { | |
super.viewWillAppear(animated) | |
getImageDataFromExtension() | |
} | |
} | |
extension ActionViewController { | |
private func getImageDataFromExtension() { |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>NSExtension</key> | |
<dict> | |
<key>NSExtensionAttributes</key> | |
<dict> | |
<key>NSExtensionActivationRule</key> | |
<string> |
This file contains 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
// | |
// DropDown.swift | |
// Custom Action Sheet | |
// | |
// Created by Rani Badri on 5/25/23. | |
// Copyright © 2023 Balaji. All rights reserved. | |
// | |
import Foundation | |
import SwiftUI |
This file contains 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
// | |
// CategoryTemplateView.swift | |
// Basics | |
// | |
// Created by Venkatnarayansetty, Badarinath on 12/30/20. | |
// Copyright © 2020 Badarinath Venkatnarayansetty. All rights reserved. | |
// | |
import SwiftUI |
This file contains 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
import Combine | |
struct Welcome: Codable { | |
let page: Int | |
let results: [Result] | |
let totalPages, totalResults: Int | |
init(page:Int = 0, results: [Result], totalPages:Int = 0, totalResults: Int = 0) { | |
self.page = page | |
self.results = results |
NewerOlder