feat(android): complete first successful skip export

This commit is contained in:
Daniel Arantes Loverde
2026-03-20 10:56:22 -03:00
parent cb7bfef356
commit 9bdb9dfdea
22 changed files with 360 additions and 153 deletions

View File

@@ -13,8 +13,8 @@ import UIKit
#if !canImport(UIKit)
struct UIDevice {
static let topNotch: CGFloat = 0
static let bottomNotch: CGFloat = 0
static let topNotch = 0.0
static let bottomNotch = 0.0
var modelName: String {
"android"
@@ -67,6 +67,37 @@ extension View {
content()
}
}
#endif
}
@ViewBuilder
func appContentShape<S: Shape>(_ shape: S) -> some View {
#if os(Android)
self
#else
self.contentShape(shape)
#endif
}
@ViewBuilder
func appBottomSafeAreaInset<Content: View>(@ViewBuilder content: () -> Content) -> some View {
#if os(Android)
self.overlay(alignment: .bottom) {
content()
}
#else
self.safeAreaInset(edge: .bottom) {
content()
}
#endif
}
@ViewBuilder
func appLayoutPriority(_ value: Double) -> some View {
#if os(Android)
self
#else
self.layoutPriority(value)
#endif
}
}