Environment
- Xcode version: 26.2
- iOS version: 26.2
- Devices affected: iPhone 17 Pro , iPhone simulators
- Maps SDK Version: 11.18.1
Observed behavior and steps to reproduce
Given the following code the, 'y' margin of the o.attrributionButton.margins is not working. No matter what number I pul there the attribution button has a static position. The 'x' margin is working as expected. This happens no matter what the 'position' of the attributionButton is (topLeft, topRight, etc)
.ornamentOptions({
var o = OrnamentOptions()
let yOffset: CGFloat = !showPOIFilterBar || isShowingNearby || (waypointsCollection.count == 1 && pinnedWaypoint != nil) ? -50 : 0
o.logo.position = .topLeft
o.logo.margins = CGPoint(x: 8, y: 105 + yOffset)
o.attributionButton.position = .topLeft
o.attributionButton.margins = CGPoint(x: 80, y: 105 + yOffset) // <--- issue is here
o.scaleBar.position = .topLeft
o.scaleBar.margins = CGPoint(x: 8, y: 125 + yOffset)
o.compass.position = .topRight
o.compass.margins = CGPoint(x: 5, y: 105 + yOffset)
return o
}())
In this image the attribution button should be positioned next to the Mapbox logo. It previously was until after I updated from SDK 11.16 to 11.18
Expected behavior
I would expect that y margin adjusted based on the value in the ornamentOptions setting
Environment
Observed behavior and steps to reproduce
Given the following code the, 'y' margin of the o.attrributionButton.margins is not working. No matter what number I pul there the attribution button has a static position. The 'x' margin is working as expected. This happens no matter what the 'position' of the attributionButton is (topLeft, topRight, etc)
In this image the attribution button should be positioned next to the Mapbox logo. It previously was until after I updated from SDK 11.16 to 11.18
Expected behavior
I would expect that y margin adjusted based on the value in the ornamentOptions setting