An example of adding a faux notch using AppKit + SwiftUI

Overview

faux-notch

An example of adding a faux notch using AppKit + SwiftUI

Screen Shot 2021-10-20 at 17 00 41

What is this?

It's a bare-bones example that renders a fake MacBook notch in macOS. It combines AppKit and SwiftUI.

Why?

I saw where people were making these apps, but didn't see any source code. Maybe someone would find this useful!

What does it do?

Not much. It's not even pixel perfect! It doesn't factor in the cursor either (e.g. letting the cursor "skip" over it).

Features:

  • Shows a notch
  • Stays on top of the Menu Bar
You might also like...
Example for RxFeedback

RxFeedback Sample This is a repository for the RxFeedback code sample. Running Install bazel (This project is tested with Bazel 4.0.0) bazel run //App

Example project guide you schedules multiple thread for network requests in RxSwift, which is optimize your app's performance better.
Example project guide you schedules multiple thread for network requests in RxSwift, which is optimize your app's performance better.

RxSwift-Multi-Threading-Example Example project guide you schedules multiple thread for network requests in RxSwift, which is optimize your app's perf

This is example project for my presentation in iOSDC JAPAN 2021

Swift PM Project Example This is example project for my presentation in iOSDC JAPAN 2021. Package.swift based project management Multi Modules Multi P

Example Xcode swift iOS project for Core Data + iCloud syncing
Example Xcode swift iOS project for Core Data + iCloud syncing

iCloudCoreDataStarter Hello, I'm Chad. For the last several months I have been working on Sticker Doodle, an app you should go download right now! In

A repository of example plugins for Delta Client

Example Plugins for Delta Client This repository contains a few example plugins to help developers get a practical understanding of how to use the plu

CustomPod Example Axon With Swift

CustomPod_Example_Axon Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installa

Example App for playing around with
Example App for playing around with

BookStore πŸ‘‰ ν•œκΈ€ 버전 See new releases and search for programming books from IT Bookstore API This is a sample app to practice using Result type, stubbin

MVVM example app with RxSwift & RxDataSources & Dependency Injection & UnitTests

Hi there, This is MVVM example app with RxSwift & RxDataSources & Dependency Injection & UnitTests and more πŸ‘‹ MVVM with RxSwift Example Features: Rea

ReactorKit karrotFlex example
ReactorKit karrotFlex example

reactorKit-karrotFlex-example πŸŽ‰ ReactorKit + KarrotFlex 예제 μž‘μ„±μ„ μœ„ν•΄μ„œ λ§Œλ“€μ–΄μ§„ ν”„λ‘œμ νŠΈλ‘œ r

Owner
Tanner Stokes
Mobile @ Automattic. Indoor enthusiast. Previously Clemson University.
Tanner Stokes
Todolist-swiftui - An example of using SwiftUI with CoreData

todolist-swiftui An example of using SwiftUI with CoreData Installation Install

null 0 Dec 30, 2021
Here there is a simple example using watchOS and SwiftUI

A Simple Demonstration Project using WatchOS + SwiftUI Description This project is a simple demonstration about how to create a WatchOS App using Swif

Leandro Alves da Silva 1 Jul 19, 2022
SwiftUI Todo app example using a React/Redux monolithic state store with flux like dispatch/reduce actions

SwiftUI-Todo-Redux SwiftUI Todo Redux app example using a React/Redux monolithic state store with flux like dispatch/reduce actions Background SwiftUI

moflo 12 Nov 29, 2022
An example app with using ShazamKit

ShazamKitExample An example app with using ShazamKit. Check out a live demo on Twitter. Related Resources Introducing ShazamKit WWDC21 β€” Explore Shaza

Artem Novichkov 10 May 25, 2022
An example project of using the new Character Controller component in RealityKit 2.0

CharacterController in RealityKit 2.0 An example project of using the new Character Controller component in RealityKit 2.0. Demo Tweet Usage Install a

Sai Kambampati 8 Nov 13, 2022
An example of using the GPU on M1 arm64 Macs for basic compute functions

M1-GPU-Compute Using Swift and Apple's Metal API to utilize the GPUs on M1 equipped Macs Adding Two Arrays CPUs perform computations sequentially, wai

Paul Serbanescu 0 Apr 10, 2022
SwiftUI + Combine + MVVM - Book search example

CombineBookSearch SwiftUI + Combine + MVVM Example project of SwiftUI and Combine using MVVM architecture pattern.

Pablo Paciello 61 Jan 2, 2023
SwiftUI Navigation example app

SwiftUINavigationExample SwiftUI Navigation example app. Navigation is managed by a single class called NavSwitches. This contains all the booleans th

Luke Smith 4 Feb 18, 2022
Example on how to print a NSTableView from your app but then also add text to the print-out.

NSTableView Printing Test This is a demo project so you can check out how printing a table could work. The goal here is to show tabular data on screen

Clean Cocoa 3 Mar 29, 2022