Conditionally create selectedTab State property if we're on macOS

This commit is contained in:
Angelo Stavrow 2020-08-12 10:34:12 -04:00
parent 0460ca73ca
commit 779e864829
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -4,7 +4,10 @@ import SwiftUI
struct WriteFreely_MultiPlatformApp: App {
@StateObject private var preferences = PreferencesModel()
@StateObject private var account = AccountModel()
#if os(macOS)
@State private var selectedTab = 0
#endif
#if DEBUG
@StateObject private var store = testPostStore