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
| // Created by Doğanay Şahin on 2.10.2023. | |
| // | |
| import Foundation | |
| import Foundation | |
| import Combine | |
| import AVFoundation | |
| import SwiftUI |
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
| // Created by Doğanay Şahin on 2.10.2023. | |
| // | |
| import Foundation | |
| import Foundation | |
| import AVKit | |
| import SwiftUI | |
| import AVFoundation | |
| import Combine |
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
| // Created by Doğanay Şahin on 2.10.2023. | |
| // | |
| import Foundation | |
| import SwiftUI | |
| import AVFoundation | |
| import AVKit | |
| struct PlayerView: 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
| struct ContentView: View { | |
| @State private var showCamera = false | |
| @State private var selectedImage: UIImage? | |
| @State var isShooted = false | |
| @State var image: UIImage? | |
| var body: some View { | |
| VStack { | |
| Button { | |
| showCamera.toggle() |
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
| struct SnapCarousel<Content: View, T: Identifiable>: View { | |
| var content: (T) -> Content | |
| var list: [T] | |
| var spacing: CGFloat | |
| var trialingSpace: CGFloat | |
| @Binding var index: Int | |
| init(spacing: CGFloat = 15, trialingSpace: CGFloat = 100, index: Binding<Int>, items: [T], @ViewBuilder content: @escaping (T)->Content) { | |
| self.list = items |
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
| import UIKit | |
| import CoreData | |
| class ViewController: UIViewController, UISearchResultsUpdating, UISearchBarDelegate { | |
| // Kendi delegate methodu UISearchBarDelegate | |
| func updateSearchResults(for searchController: UISearchController) { | |
| guard let searchText = searchController.searchBar.text else { | |
| return | |
| } | |
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
| import UIKit | |
| class ViewController: UIViewController { | |
| let anuikitTextfield = ANUIKitTextField( | |
| placeholder: "Write a message", | |
| inputTextColor: .white, | |
| placeHolderColor: .gray.withAlphaComponent(0.5), | |
| cornerRadius: 12.0, | |
| backGroundColor: .black, | |
| borderWith: 2.0, |
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
| // | |
| // ContentView.swift | |
| // ScanTextApp | |
| // | |
| // Created by Doganay on 25.04.2023. | |
| // | |
| import UIKit | |
| import SwiftUI | |
| import VisionKit |
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
| //Add the names of the simulators you see in xcode | |
| enum PreviewDeviceNames : String{ | |
| case iPhone14Pro = "iPhone 14 Pro" | |
| case iPhone14ProMax = "iPhone 14 Pro Max" | |
| case iPhoneSE = "iPhone SE (3rd generation)" | |
| case iPad10 = "iPad (10th generation)" | |
| } | |
| struct PreviewModifier : ViewModifier{ |
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
| List{ | |
| ForEach(medViewModel.medicals, id : \.id) { medicalInfo in | |
| MedicalCardView() | |
NewerOlder