mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-27 03:41:21 +01:00
Essential changes for Xcode 11 beta4
This commit is contained in:
@@ -14,7 +14,7 @@ struct HikeView: View {
|
||||
var transition: AnyTransition {
|
||||
let insertion = AnyTransition.move(edge: .trailing)
|
||||
.combined(with: .opacity)
|
||||
let removal = AnyTransition.scale()
|
||||
let removal = AnyTransition.scale(scale: 0.0)
|
||||
.combined(with: .opacity)
|
||||
return .asymmetric(insertion: insertion, removal: removal)
|
||||
}
|
||||
|
||||
@@ -9,17 +9,17 @@ import Combine
|
||||
import SwiftUI
|
||||
|
||||
final class UserData: BindableObject {
|
||||
let didChange = PassthroughSubject<UserData, Never>()
|
||||
let willChange = PassthroughSubject<UserData, Never>()
|
||||
|
||||
var showFavoritesOnly = false {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
willChange.send(self)
|
||||
}
|
||||
}
|
||||
|
||||
var landmarks = landmarkData {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
willChange.send(self)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user