Skip to content

Instantly share code, notes, and snippets.

View doganaysahins's full-sized avatar
🦍
iOS enjoyer

Doganay Sahin doganaysahins

🦍
iOS enjoyer
View GitHub Profile
// Created by Doğanay Şahin on 2.10.2023.
//
import Foundation
import Foundation
import Combine
import AVFoundation
import SwiftUI
// Created by Doğanay Şahin on 2.10.2023.
//
import Foundation
import Foundation
import AVKit
import SwiftUI
import AVFoundation
import Combine
// Created by Doğanay Şahin on 2.10.2023.
//
import Foundation
import SwiftUI
import AVFoundation
import AVKit
struct PlayerView: View {
@doganaysahins
doganaysahins / CameraOverlayered.swift
Created January 23, 2024 20:55
Camera with image overlayered...
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()
@doganaysahins
doganaysahins / Carousel.swift
Created October 26, 2023 15:57
SwiftUI Ready-to-Use Carousel
@doganaysahins
doganaysahins / Search.swift
Created September 13, 2023 21:26
UIKit Search
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
}
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,
//
// ContentView.swift
// ScanTextApp
//
// Created by Doganay on 25.04.2023.
//
import UIKit
import SwiftUI
import VisionKit
@doganaysahins
doganaysahins / PreviewDeviceExtension.swift
Last active April 19, 2023 23:00
SwiftUI Device Preview Extension
//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{
@doganaysahins
doganaysahins / ContentView.swift
Created June 17, 2022 22:21
Empty list view extension
List{
ForEach(medViewModel.medicals, id : \.id) { medicalInfo in
MedicalCardView()