I raised the monthly budget for this app from $1300 to $2000 during July, but the campaign stopped once it reached $1303.84 around July 21st.
I understand that lowering the budget should only apply in the following month, so why did the campaign stop even though there was roughly $700 left for the month?
The issue is that the system spent the initial budget within three weeks as if it was using the new budget, so I don't have ads showing for the remainder of the month.
The CPI is set at $5.60 per recommendation, and the average CPI is $1.28, so I don't think the issue is that the bid is not high enough.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
This simple project just makes the Swift compiler crash in init(comparator: KeyPathComparator<RemoteComputer>):
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
}
.padding()
}
}
enum CSItemOrderType: Int, Codable, CaseIterable, CustomStringConvertible {
case readableName
case lastConnectionDate
case numberOfConnections
var description: String {
switch self {
case .readableName: return "STR_NAME"
case .lastConnectionDate: return "STR_LAST_CONN_DATE"
case .numberOfConnections: return "STR_ORDER_MOST_CONNECTED"
}
}
}
struct CSItemOrder: Codable {
static let allCases = [CSItemOrder(type: .readableName),
CSItemOrder(type: .lastConnectionDate, order: .reverse),
CSItemOrder(type: .numberOfConnections, order: .reverse)]
static let allSortOrders = [KeyPathComparator(\RemoteComputer.readableName),
KeyPathComparator(\RemoteComputer.lastConnectionDate),
KeyPathComparator(\RemoteComputer.numberOfConnections)]
let type: CSItemOrderType
var order: SortOrder
var comparator: KeyPathComparator<RemoteComputer> {
switch type {
case .readableName: return KeyPathComparator(\RemoteComputer.readableName, order: order)
case .lastConnectionDate: return KeyPathComparator(\RemoteComputer.lastConnectionDate, order: order)
case .numberOfConnections: return KeyPathComparator(\RemoteComputer.numberOfConnections, order: order)
}
}
init(type: CSItemOrderType, order: SortOrder = .forward) {
self.type = type
self.order = order
}
init(comparator: KeyPathComparator<RemoteComputer>) throws {
switch comparator.keyPath {
case \RemoteComputer.readableName: self.init(type: .readableName, order: comparator.order)
case \RemoteComputer.lastConnectionDate: self.init(type: .lastConnectionDate, order: comparator.order)
case \RemoteComputer.numberOfConnections: self.init(type: .numberOfConnections, order: comparator.order)
default:
print("Unsupported keyPath: \(comparator.keyPath)")
throw ItemOrderError.unsupportedKeyPath
}
}
}
struct RemoteComputer: Codable, Hashable, Identifiable {
let id: Int
let name: String
let hostname: String?
let localIpAddress: String?
let vncPort: Int
let sshPort: Int
let publicIpAddress: String?
let publicPort: Int
let macAddress: String
let scVersion: String
let manualMode: Int
let uuid: String
let lastMappingStatus: String?
let isAwake: Bool
let unregistered: Bool
let osVersion: String?
let lastUpdate: Date
let remoteAddress: String?
let lastKeyboardLocale: String?
let macSystemShortcuts: [String: [Int32]]?
var readableName: String {
return name.removingPercentEncoding ?? name
}
var lastConnectionDate: Date {
return Date.now
}
var unwrappedPublicIpAddress: String {
return publicIpAddress ?? NSLocalizedString("STR_NOT_AVAILABLE", comment: "")
}
var numberOfConnections: Int {
return 0
}
}
enum ItemOrderError: Error {
case unsupportedKeyPath
}
This code works fine in previous betas or Xcode 15.
I don't know if this is a iOS 18.1 beta bug or some StoreKit server issues but Product.SubscriptionInfo.Status is returning an empty array in production even if the user has a valid subscription that is months away from expiring or renewing.
I myself ran into this issue this morning but of course everything is fine in development mode so that makes it quite challenging to debug.
Anyone else has this issue?
I understand this is a known issue, but it’s truly unacceptable that it remains unresolved. Allowing users to customize toolbars is a fundamental macOS feature, and it has been broken since the release of macOS 15.
How is it possible that this issue persists even in macOS 15.3 beta (24D5040f)?
FB15513599
import SwiftUI
struct ContentView: View {
@State private var showEditItem = false
var body: some View {
VStack {
VStack {
Text("Instructions to reproduce the crash")
.font(.title)
.padding()
Text("""
1. Click on "Toggle Item"
2. In the menu go to File > New Window
3. In new window, click on "Toggle Item"
""")
}
.padding()
Button {
showEditItem.toggle()
} label: {
Text("Toggle Item")
}
}
.padding()
.toolbar(id: "main") {
ToolbarItem(id: "new") {
Button {
} label: {
Text("New…")
}
}
if showEditItem {
ToolbarItem(id: "edit") {
Button {
} label: {
Text("Edit…")
}
}
}
}
}
}
I'm trying to apply a glass effect on a circle stroke but all it does is apply it to the circle itself and not the stroke:
import SwiftUI
let kCarouselCircleSize: CGFloat = 150
let kCarouselOpacity: Double = 0.3
let kCarouselStrokeWidth: CGFloat = 60
struct ContentView: View {
@State var showing = false
var body: some View {
VStack(spacing: 60) {
Text("ultraThinMaterial:")
.font(.title)
CarouseCircle(drawProgress: 0.7, isActive: false)
Text("glassEffect()")
.font(.title)
CarouseCircle(useGlassEffect: true, drawProgress: 0.7, isActive: false)
}
.background(content: {
Image(.background2)
})
.padding()
}
}
struct CarouseCircle: View {
var size: CGFloat = kCarouselCircleSize
var strokeWidth: CGFloat = kCarouselStrokeWidth
var useGlassEffect: Bool = false
var drawProgress: CGFloat
var isActive: Bool
var body: some View {
if useGlassEffect {
Circle()
.trim(from: 0, to: drawProgress)
.fill(.clear)
.stroke(.blue, style: StrokeStyle(lineWidth: strokeWidth, lineCap: .round))
.frame(width: size, height: size)
.glassEffect()
.shadow(color: .black.opacity(kCarouselOpacity), radius: isActive ? 4 : 1, x: 0, y: 0)
.rotationEffect(.degrees(-90)) // Start drawing at button 1's position
} else {
Circle()
.trim(from: 0, to: drawProgress)
.fill(.clear)
.stroke(.ultraThinMaterial, style: StrokeStyle(lineWidth: strokeWidth, lineCap: .round))
.frame(width: size, height: size)
.shadow(color: .black.opacity(kCarouselOpacity), radius: isActive ? 4 : 1, x: 0, y: 0)
.rotationEffect(.degrees(-90)) // Start drawing at button 1's position
}
}
}
Here's the result:
Is this supported, a bug or something I'm doing wrong?
Hi everyone,
I’m running into a strange animation glitch when using a Menu inside a glassEffect container.
Here’s a minimal example:
import SwiftUI
struct ContentView: View {
@Namespace private var namespace
var body: some View {
ZStack {
Image(.background)
.resizable()
.frame(maxWidth: .infinity, maxHeight: .infinity)
.ignoresSafeArea()
GlassEffectContainer {
HStack {
Button("b1") {}
Button("b2") {}
Button("b3") {}
Button("b4") {}
Button("b5") {}
Menu {
Button("t1") { }
Button("t2") { }
Button("t3") { }
Button("t4") { }
Button("t5") { }
} label: {
Text("Menu")
}
}
}
.padding(.horizontal)
.frame(height: 50)
.glassEffect()
}
}
}
What happens:
The bar looks fine initially:
When you open the Menu, the entire bar morphs into the menu:
When dismissing, the bar briefly animates into a solid rectangle before reapplying the glass effect:
Questions:
Is there a way to prevent that brief rectangle animation when dismissing the menu?
If not, is it possible to avoid the morphing altogether and have the menu simply overlay on top of the bar instead of replacing it?
Any ideas or workarounds would be greatly appreciated!
Xcode 26.2 RC has been out for over 24 hours and it's still not possible to submit apps.