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 CustomView2: UIView { | |
| private let xibName = "CustomView2" | |
| override init(frame: CGRect) { | |
| super.init(frame: frame) | |
| self.commonInit() | |
| } | 
  
    
      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 CustomView1: UIView { | |
| let titleLabel:UILabel = { | |
| let label = UILabel() | |
| label.frame = CGRect(x: 0, y: 0, width: 60, height: 25) | |
| label.translatesAutoresizingMaskIntoConstraints = false | |
| label.textAlignment = .center | |
| label.text = "라벨" | 
  
    
      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
    
  
  
    
  | jsonEncoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full) | |
| extension DateFormatter { | |
| static let iso8601Full: DateFormatter = { | |
| let formatter = DateFormatter() | |
| formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ" | |
| formatter.calendar = Calendar(identifier: .iso8601) | |
| formatter.timeZone = TimeZone(secondsFromGMT: 0) | |
| formatter.locale = Locale(identifier: "en_US_POSIX") | 
  
    
      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
    
  
  
    
  | func loadJsonFile() -> bigSur?{ | |
| let jsongDecoder = JSONDecoder() | |
| do { | |
| guard let documentDirectoryUrl = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else { return nil} | |
| let fileURL = documentDirectoryUrl.appendingPathComponent("sampleData.json") | |
| let jsonData = try Data(contentsOf: fileURL, options: .mappedIfSafe) | |
| let decodedBigSur = try jsongDecoder.decode(bigSur.self, from: jsonData) | 
  
    
      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
    
  
  
    
  | func saveJsonData(data:bigSur) { | |
| let jsonEncoder = JSONEncoder() | |
| do { | |
| let encodedData = try jsonEncoder.encode(data) | |
| print(String(data: encodedData, encoding: .utf8)!) | |
| guard let documentDirectoryUrl = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else { return } | |
| let fileURL = documentDirectoryUrl.appendingPathComponent("sampleData.json") | |
  
    
      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
    
  
  
    
  | { | |
| "result": "success", | |
| "message": "sentMsg", | |
| "data": { | |
| "bsList": [ | |
| { | |
| "bs_id": 1, | |
| "bs_addr2": "222", | |
| "bs_key": "333", | |
| "bs_addr1": "111", | 
  
    
      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 Foundation | |
| struct bigSur : Codable { | |
| let message: String | |
| let req_id:String | |
| let result:String | |
| let data : bslistOut | |
| } | |
| struct bslistOut : Codable { |