This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) 2006-2014 Apple Inc. All Rights Reserved. | |
| * | |
| * @APPLE_LICENSE_HEADER_START@ | |
| * | |
| * This file contains Original Code and/or Modifications of Original Code | |
| * as defined in and that are subject to the Apple Public Source License | |
| * Version 2.0 (the 'License'). You may not use this file except in | |
| * compliance with the License. Please obtain a copy of the License at | |
| * http://www.opensource.apple.com/apsl/ and read it before using this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct ContentView: View { | |
| var body: some View { | |
| ZStack { | |
| RoundedRectangle(cornerRadius: 120) | |
| .fill(.ultraThinMaterial) | |
| .mask( | |
| RoundedRectangle(cornerRadius: 120) | |
| .blur(radius: 40) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| // MARK: - View | |
| struct OnboardingView: View { | |
| @AppStorage("Feather.onboarding") private var _onboardingFinished: Bool = false | |
| @State private var _page: Int = 0 | |
| private var _pageLimit: Int = 2 | |
| // MARK: Body | |
| var body: some View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func showOnboarding() { | |
| let window = NSWindow( | |
| contentRect: NSRect(x: 0, y: 0, width: 640, height: 600), | |
| styleMask: [.fullSizeContentView, .nonactivatingPanel], | |
| backing: .buffered, | |
| defer: false | |
| ) | |
| // Replace your own view here | |
| let onboardingWindow = NSHostingView(rootView: EmptyView()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct SettingsLinkWrapper<Label>: View where Label: View { | |
| private var label: Label | |
| init(@ViewBuilder label: () -> Label) { | |
| self.label = label() | |
| } | |
| var body: some View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "example", | |
| "author": "ur_mom#42069", | |
| "theme_color_map": { | |
| "KEYBOARD": ["#000000", "#FFFFFF"], | |
| "BACKGROUND_PRIMARY": ["#000000", "#FFFFFF"], | |
| "BACKGROUND_SECONDARY": ["#000000", "#FFFFFF"], | |
| "BACKGROUND_SECONDARY_ALT": ["#000000", "#FFFFFF"], | |
| "BACKGROUND_TERTIARY": ["#000000", "#FFFFFF"], | |
| "BACKGROUND_ACCENT": ["#000000", "#FFFFFF"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Toothpaste", | |
| "description": "For someone special.", | |
| "version": "0.2", | |
| "authors": [ | |
| { | |
| "name": "flower!", | |
| "id": "836452332387565589" | |
| } | |
| ], |