Comments (1)
Another way is to add a private SwiftUI view to use the native close button in UIKit.
Field Maps uses it, and a condensed version looks like
struct CloseButton: UIViewRepresentable {
private let action: () -> Void
init(action: @escaping () -> Void) { self.action = action }
func makeUIView(context: Context) -> UIButton {
let button = UIButton(type: .close, primaryAction: UIAction { _ in action() })
for axis in [NSLayoutConstraint.Axis.horizontal, .vertical] {
button.setContentCompressionResistancePriority(.required, for: axis)
button.setContentHuggingPriority(.required, for: axis)
}
return button
}
func updateUIView(_ uiView: UIButton, context: Context) {}
}
from arcgis-maps-sdk-swift-toolkit.
Related Issues (20)
- API Key documentation needed HOT 5
- Make `Result.init(awaiting:)` internal HOT 2
- Previews are broken HOT 2
- Apple map
- 18BluntWrapz
- Xcode 16 warnings HOT 1
- `UtilityNetworkTraceViewModelTests.testCase_2_x`, `testCase_3_1` failures
- FloorFilter: SiteAndFacility Manager appearing when panning map HOT 6
- Xcode 16 build errors HOT 4
- Scalebar - unexpected exception HOT 13
- Support Navigation Bar Title For Popup and FeatureForm
- `FloatingPanel` / `UtilityNetworkTrace` - Bottom padding w/ keyboard incorrect
- Remove use of deprecated view modifiers
- Create convenience "Done" button for easier localization
- Popup is logging large data to console
- OverviewMap does not change when switching basemaps on the original map HOT 5
- Bookmark Selection HOT 8
- PopupView fields visibility is ignored HOT 1
- Use `onScrollGeometryChange(for:of:action:)` where applicable on `ScrollView`s
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcgis-maps-sdk-swift-toolkit.