forked from AcaMate/AcaMate_iOS
21 lines
441 B
Swift
21 lines
441 B
Swift
//
|
|
// View.swift
|
|
// AcaMate
|
|
//
|
|
// Created by Sean Kim on 12/1/24.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
extension View {
|
|
func fullView(_ backColor: Color) -> some View{
|
|
return self
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
.background(backColor)
|
|
}
|
|
|
|
func endTextEditing() {
|
|
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
|
|
}
|
|
}
|