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
//First to decalre Parameter | |
var array = [[String : Any]]() | |
//MARK:- to call Api | |
func postRequest_toServer(){ | |
let apiURL = AppConfig.shared.apiBasicURl + "user/post-new-job" | |
let objPostNewJob = PostNewJob() |
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
//MARK:- DATE | |
extension Date { | |
func toSString_ServerFormat() -> String { | |
let dateFormatter = DateFormatter() | |
dateFormatter.timeZone = .current | |
dateFormatter.dateFormat = "yyyy-MM-dd hh:mm:ss" |
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
public struct TextAlert { | |
public var title: String | |
public var placeholder: String = "" | |
public var accept: String = "OK" | |
public var cancel: String = "Cancel" | |
public var action: (String?) -> () | |
} | |
extension View { |