문자열만 복사 UIPasteboard.general.string = "복사할 문자열" 이미지만 복사 UIPasteboard.general.image = UIImage(systemName: "photo") 문자열과 이미지 같이 복사 import UniformTypeIdentifiers if let imageData = UIImage(systemName: "photo")?.pngData() { let pasteboard = [ [UTType.utf8PlainText.identifier : "복사할 문자열"], [UTType.png.identifier : imageData], ] UIPasteboard.general.setItems(pasteboard) } iOS Swift Xcode SwiftUI Objec..
Guideline 5.3.2 - Legal - Gaming, Gambling, and Lotteries Your app includes a contest or sweepstakes but it does not: - Indicate that Apple is not involved in any way with the contest or sweepstakes. Next Steps It is necessary to: - Include official rules of the contest or sweepstakes in the app and ensure the rules are available to users at all times. - Include an explicit statement in the cont..
postfix operator ~~ extension String { static postfix func ~~ (string: Self) -> Character { return string.last ?? Character("") } } "Gons"~~// s 문자열의 마지막 글자를 ~~ 물결 2개로 가져옴. 이런식으로 원하는 동작을 하는 연산자를 만들 수 있습니다. iOS Swift Xcode Custom Operator postfix prefix infix ternary