Skip to content

Instantly share code, notes, and snippets.

View sebjvidal's full-sized avatar

Seb Vidal sebjvidal

View GitHub Profile
@sebjvidal
sebjvidal / SceneDelegate.swift
Created June 27, 2023 18:14
Custom UINavigationBar Height
// MARK: - SceneDelegate
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
let navigationController = UINavigationController(navigationBarClass: NavigationBar.self, toolbarClass: nil)
(navigationController.navigationBar as! NavigationBar).preferredHeight = 88
navigationController.setViewControllers([ViewController()], animated: false)
//
// ViewController.swift
// task-test
//
// Created by Seb Vidal on 18/08/2022.
//
import UIKit
class FirstViewController: UIViewController {
@sebjvidal
sebjvidal / SceneDelegate.swift
Created January 30, 2022 21:00
SceneDelegate: NSToolbarItem.Identifier.supplementarySidebarTrackingSeparatorItemIdentifier
//
// SceneDelegate.swift
// Snippet
//
// Created by Seb Vidal on 30/01/2022.
//
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate, NSToolbarDelegate {