self ) session.alertMessage = "iPhoneΛSuicaʹ͚͍ۙͮͯͩ͘͞" session.begin() FeliCaΛಡΈࠐΉ࣌ISO18092Λࢦఆ /** * @enum NFCPollingOption * * @constant NFCPollingISO14443 Support both Type A & B modulation. NFCTagTypeISO7816Compatible and NFCTagTypeMiFare tags will be discovered. * @constant NFCPollingISO15693 NFCTagTypeISO15693 tag will be discovered. * @constant NFCPollingISO18092 NFCTagTypeFeliCa tag will be discovered. */ public struct PollingOption : OptionSet { public init(rawValue: Int) public static var iso14443: NFCTagReaderSession.PollingOption { get } public static var iso15693: NFCTagReaderSession.PollingOption { get } public static var iso18092: NFCTagReaderSession.PollingOption { get } }
in print("ಡΈࠐΈ։࢝") }, didDetect: { reader, result in switch result { case .success(let suica): let balance = suica.boardingHistories.first?.balance ?? 0 reader.setMessage(balance) case .failure(let error): reader.setMessage("ಡΈࠐΈʹࣦഊ͠·ͨ͠") } }) ؆୯