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 |
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
{ | |
"page": 1, | |
"results": [ | |
{ | |
"id": 185, | |
"video": false, | |
"vote_count": 8266, | |
"vote_average": 8.2, | |
"title": "A Clockwork Orange", | |
"release_date": "1971-12-18", |
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
.onAppear { | |
Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { (timer) in | |
if self.currentIndex < 5 { | |
self.publisher.send(AnimationStatus.start(index: self.currentIndex)) | |
self.currentIndex += 1 | |
} | |
} |
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
struct ProgressView: View { | |
@State private var currentIndex:Int = 0 | |
@State private var maxIterations:Int = 0 | |
@State private var publisher = PassthroughSubject<AnimationStatus, Never>() | |
var body: some View { | |
HStack(spacing: 8) { | |
ForEach(0..<5) { index in | |
RectangleView(index: index, publisher: self.publisher) | |
} |
NewerOlder