- Open below directory in Finder with Cmnd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
| private static func createUserEventData(user:SKUser, eventType:SKEventType, sticker:Sticker?) { | |
| // server endpoint | |
| let endpoint = "https://app.stickerkit.io/userEvent/v1/\(user.projectID)" | |
| guard let endpointUrl = URL(string: endpoint) else { | |
| return nil | |
| } | |
| //Make JSON to send to send to server |
| #https://medium.com/better-programming/24-swift-extensions-for-cleaner-code-41e250c9c4c3 | |
| import Foundation | |
| extension String { | |
| subscript (i: Int) -> Character { | |
| return self[index(startIndex, offsetBy: i)] | |
| } | |
| subscript (bounds: CountableRange<Int>) -> Substring { |
| // Copyright © 2017 Kalpesh Talkar. All rights reserved. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |