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
<a href="https://apps.apple.com/fr/app/6-nations/id414001342" | |
attributionDestination="https://youradnetwork.com" | |
attributionSourceNone="ABIGIDENTIFIERTOKNOWWHEREITFROM"></a> |
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
// SKAdNewtwork 3.0 | |
SKAdNetwork.updatePostbackConversionValue(68) { ... } | |
// SKAdNewtwork 4.0 | |
SKAdNetwork.updatePostbackConversionValue(68, coarseValue: .high) { ... } |
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
let impression = SKAdImpression() | |
// SKAdNewtwork 3.0 | |
impression.adCampaignIdentifier = 34 | |
// SKAdNewtwork 4.0 | |
impression.sourceIdentifier = 9537 |
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
struct ContentView: View { | |
@ObservedObject var user = User() | |
var body: some View { | |
VStack { | |
HStack { | |
Text("Username:") | |
TextField("", text: $user.username) | |
.textFieldStyle(.roundedBorder) |
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 SwiftUI | |
import Combine | |
struct ContentView: View { | |
@ObservedObject var user = User() | |
var body: some View { | |
VStack { | |
HStack { |
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 SwiftUI | |
import Combine | |
class User: ObservableObject { | |
@Published var username: String = "" | |
@Published var password: String = "" | |
@Published var protectWithTouchID = false | |
} |
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
let sharedASIdentifierManager = ASIdentifierManager.shared() | |
var adID = sharedASIdentifierManager.advertisingIdentifier |
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
if #available(iOS 14, *) { | |
ATTrackingManager.requestTrackingAuthorization(completionHandler: { status in | |
if status == .authorized { | |
//if authorized the IDFA is now available | |
} | |
}) | |
} |
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 AppTrackingTransparency | |
import AdSupport |
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
var alreadyGave = [String]() | |
let formatter = NumberFormatter() | |
formatter.numberStyle = .ordinal | |
[ | |
"A partridge in a pear tree.", | |
"Two turtle doves", | |
"Three french hens", | |
"Four calling birds", | |
"Five gold rings", |
NewerOlder