-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
in this code have 2 issues call:
1- Value of type 'Image' has no member 'resizeble'
2- Cannot infer contextual base in reference to member 'fit'
`struct MostRecentlyPlacedButton: View {
@EnvironmentObject var placementSettungs: PlacementSettings
var body: some View {
Button(action: {
print("Most Recently Placed button pressed.")
self.placementSettings.selectedModel = self.placementSettungs.recentlyPlaced.last
}) {
if let mostRecentlyPlacedModel = self.placementSettungs.recentlyPlaced.last {
Image(uiImage: mostRecentlyPlacedModel.thumbnail)
.resizeble()
.frame(width: 46)
.aspectRatio(1/1, contentMode: .fit)
} else {
Image(systemName: "clock.fill")
.font(.system(size: 35))
.foregroundColor(.white)
.buttonStyle(PlainButtonStyle())
}
}
.frame(width: 50, height: 50)
.background(Color.white)
.cornerRadius(8.0)
}
}`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels